Function at 0x4b0420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55c76e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x5b3940]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4b0469
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
call fcn.004f53b3
jmp 0x4b0957
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [esp + 0x24], ecx
call fcn.00410b40
test eax, eax
je 0x4b0954
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0
jne 0x4b049d
mov esi, dword [ebx]
call fcn.0044e090
cmp dword [eax + 0x88], 0
je 0x4b0954
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x44]
call fcn.004f5121
mov dword [esp + 0xb0], 0
mov edi, dword [ebx]
lea esi, [esp + 0x94]
call fcn.0043f000
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00415f60
lea ecx, [esp + 0x30]
call fcn.004f4b7f
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 1
call fcn.00410b70
lea ecx, [esp + 0x64]
call fcn.0040e430
mov ecx, esi
mov byte [esp + 0xb0], 2
call fcn.0040fe70
push eax
mov ecx, esi
call fcn.00415ef0
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x70]
call fcn.00415e40
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
call edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], eax
call fcn.0040e200
mov dword [esp + 0x28], vtable.CRgn.0
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 3
call fcn.004139f0
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x2c]
call fcn.004f535b
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
call fcn.004f4d64
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1a0]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x28]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 0xc], esi
lea eax, [esp + 0x40]
push eax
call edx
push 0
lea ecx, [esp + 0x34]
call fcn.004f4d64
lea ecx, [esp + 0x54]
call fcn.004f4b7f
mov byte [esp + 0xb0], 4
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x58]
call fcn.00410b70
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b05da
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x58]
push eax
push ecx
call edi
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x70], eax
jne 0x4b0678
push 1
lea edx, [esp + 0x18]
push edx
push ebx
call fcn.004b0260
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0xcc0020
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x24]
call fcn.0040fe70
push eax
lea ecx, [esp + 0x28]
call fcn.00415ef0
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.00410ad0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0xcc0020
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040fe70
push eax
lea ecx, [esp + 0x28]
call fcn.00415ef0
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x60]
call fcn.00410ad0
jmp 0x4b08c4
push 0x38
call fcn.004dcae4
add esp, 4
test eax, eax
je 0x4b0691
mov esi, eax
call fcn.004afce0
mov ebx, eax
jmp 0x4b0693
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x10], ecx
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x14], edx
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x18], eax
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], 1
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x14]
call fcn.0040fe70
push eax
lea ecx, [esp + 0x18]
call fcn.00415ef0
push eax
push esi
lea esi, [ebx + 4]
call fcn.004251e0
mov dword [ebx], eax
mov esi, dword [esp + 0x50]
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.0040fe70
push eax
lea ecx, [esp + 0x18]
call fcn.00415ef0
push eax
push esi
lea esi, [ebx + 0xc]
call fcn.004251e0
add esp, 0xc
lea ecx, [esp + 0x74]
mov dword [ebx + 8], eax
call fcn.004f4b7f
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 5
call fcn.00410b70
lea ecx, [esp + 0x84]
call fcn.004f4b7f
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xb4], 6
call fcn.00410b70
mov ecx, dword [ebx]
mov edx, dword [esp + 0x78]
push ecx
push edx
call edi
mov ecx, dword [esp + 0x88]
mov esi, eax
mov eax, dword [ebx + 8]
push eax
push ecx
call edi
mov edx, dword [esp + 0x18]
push 0xcc0020
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040fe70
push eax
lea ecx, [esp + 0x28]
call fcn.00415ef0
push eax
push 0
push 0
lea ecx, [esp + 0x94]
call fcn.00410ad0
mov edx, dword [esp + 0x18]
push 0xcc0020
push edx
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040fe70
push eax
lea ecx, [esp + 0x28]
call fcn.00415ef0
push eax
push 0
push 0
lea ecx, [esp + 0xa4]
call fcn.00410ad0
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x24]
call fcn.0040fe70
push eax
lea ecx, [esp + 0x28]
call fcn.00415ef0
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.00410ad0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x88]
push edx
push eax
call edi
mov ecx, dword [esp + 0x78]
push esi
push ecx
call edi
lea ecx, [esp + 0x14]
call fcn.00415ef0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0040fe70
imul esi, eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
add esi, esi
add esi, esi
cmp esi, 4
jb 0x4b0864
lea ebx, [ebx]
mov edx, dword [ecx]
cmp edx, dword [eax]
jne 0x4b0888
sub esi, 4
add eax, 4
add ecx, 4
cmp esi, 4
jae 0x4b0850
test esi, esi
je 0x4b0898
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b0888
cmp esi, 1
jbe 0x4b0898
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b0888
cmp esi, 2
jbe 0x4b0898
mov al, byte [eax + 2]
cmp al, byte [ecx + 2]
je 0x4b0898
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x44]
push ecx
call fcn.004b03c0
jmp 0x4b089f
mov esi, ebx
call fcn.004afe50
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 5
call fcn.004f5108
lea ecx, [esp + 0x74]
mov byte [esp + 0xb0], 4
call fcn.004f5108
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x58]
push edx
push eax
call edi
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x34]
push ecx
push edx
call edi
lea ecx, [esp + 0x54]
mov byte [esp + 0xb0], 3
call fcn.004f5108
mov byte [esp + 0xb0], 2
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.CRgn.0
call fcn.0040e260
lea ecx, [esp + 0x64]
mov byte [esp + 0xb0], 1
call fcn.0040e1e0
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 0
call fcn.004f5108
lea ecx, [esp + 0x40]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004f5175
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0
mov dword [esi + 0xc], 1
mov ecx, dword [eax + 0x20]
push edi
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc