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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x563530
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xa0]
mov eax, dword [ecx + 0x1ac]
mov edx, dword [ecx + 0x1b4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
call fcn.00474eb0
test eax, eax
je 0x490d89
mov ecx, dword [esi + 0xa0]
mov eax, dword [ecx + 0x1d0]
mov edi, dword [esi + 0x80]
imul edi, dword [0x5c3e88]
push 0
push eax
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00472d20
mov ecx, dword [esi + 0xa0]
mov edx, dword [ecx + 0x1d4]
push 0
push edx
lea eax, [esp + 0x70]
push eax
lea edx, [esp + 0x70]
push edx
call fcn.00472d20
mov ecx, dword [esi + 0x7c]
mov eax, dword [esp + 0x64]
mov edx, dword [0x5c3e74]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esi + 0x68]
sub eax, ecx
inc eax
imul eax, edx
sub ebx, ecx
add eax, ebp
imul ebx, edx
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0xa0]
mov ecx, dword [eax + 0x1d4]
sub ecx, dword [eax + 0x1d0]
mov eax, dword [esi + 0x64]
add ebx, ebp
mov ebp, eax
sub ebp, edi
add ebp, dword [esp + 0x18]
inc ecx
cmp eax, ebp
mov edx, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], edx
jle 0x490a02
mov dword [esp + 0x58], eax
jmp 0x490a0e
mov ebp, eax
sub ebp, edi
add ebp, dword [esp + 0x18]
mov dword [esp + 0x58], ebp
sub eax, edi
add eax, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
test ecx, ecx
jle 0x490ce8
jmp 0x490a34
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 0xa0]
mov eax, dword [ecx + 0x1d0]
mov ebx, dword [ecx + 0x334]
mov ecx, dword [ecx + 0x1c0]
add eax, ebp
lea eax, [eax + eax*8]
mov eax, dword [ebx + eax*4 + 0x10]
mov dword [esp + 0x70], eax
lea eax, [ebp + ebp*2]
mov ebx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x24], eax
xor eax, eax
mov ecx, vtable.CRgn.0
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esi + 0x68]
cmp eax, edx
mov byte [esp + 0xa8], 2
mov dword [esp + 0x30], eax
jg 0x490aae
mov dword [esp + 0x30], edx
mov ecx, dword [0x5c3e74]
mov eax, dword [esp + 0x74]
add ecx, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x60]
call fcn.0050a388
cmp ebx, dword [esp + 0x4c]
jne 0x490b22
mov eax, dword [0x5c3218]
mov ecx, dword [esi + 0x64]
imul eax, ebx
mov edx, ecx
sub edx, edi
add edx, eax
cmp ecx, edx
jle 0x490b00
mov dword [esp + 0x2c], ecx
jmp 0x490b08
sub eax, edi
add eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
add eax, ebx
imul eax, dword [0x5c3218]
sub eax, edi
add eax, ecx
mov dword [esp + 0x34], eax
jmp 0x490baf
push 0
push 0
push 1
push 0
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
push 0
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esi + 0xa0]
push 0
mov dword [esp + 0x40], 0
call fcn.00478750
mov eax, dword [esi + 0x64]
mov ecx, dword [esp + 0x1c]
mov edx, eax
sub edx, edi
add edx, ecx
cmp eax, edx
jle 0x490b63
mov dword [esp + 0x2c], eax
jmp 0x490b6d
mov edx, eax
sub edx, edi
add edx, ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x4c]
push 0
push 0
push 1
push 0
push eax
push ebx
push 0
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esi + 0xa0]
push 0
mov dword [esp + 0x40], 0
call fcn.00478750
mov edx, dword [0x5c3218]
imul edx, dword [esp + 0x24]
sub edx, edi
add edx, dword [esi + 0x64]
add edx, dword [esp + 0x1c]
mov dword [esp + 0x34], edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x54]
call fcn.0050a388
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x40]
call fcn.0050a388
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x40]
push 3
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetRgnBox]
push esi
lea ecx, [esp + 0x8c]
call fcn.0050a14e
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xac], 3
call fcn.00509d6f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push 0x550009
sub eax, edx
push eax
sub ecx, ebx
push ecx
mov ecx, dword [esp + 0x98]
push edx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
push 0
lea ecx, [esp + 0x8c]
call fcn.00509d6f
mov eax, dword [esp + 0x70]
test eax, eax
jle 0x490c6c
add ebp, eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xa8], 2
call fcn.0050a1a2
mov ebx, vtable.CRgn.0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8], 1
mov dword [esp + 0x3c], ebx
call fcn.00408ce0
lea ecx, [esp + 0x50]
mov byte [esp + 0xa8], 0
mov dword [esp + 0x50], ebx
call fcn.00408ce0
lea ecx, [esp + 0x5c]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x5c], ebx
call fcn.00408ce0
mov edx, dword [0x5c3e74]
add dword [esp + 0x44], edx
inc dword [esp + 0x18]
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x490a30
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x64]
mov edi, dword [esi + 0x164]
mov edx, dword [esi + 0x68]
add ecx, dword [esp + 0x28]
add edi, eax
mov dword [esp + 0x80], edi
mov edi, dword [esi + 0x168]
add edi, edx
mov dword [esp + 0x7c], edx
mov edx, dword [esi + 0x80]
imul edx, dword [0x5c3e88]
mov dword [esp + 0x78], eax
sub eax, edx
mov ebp, eax
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 0x88], edi
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x5b3bd0]
mov edi, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
push eax
push ecx
push edx
push ebx
push ebp
push edi
mov ecx, esi
call fcn.0048c7c0
mov eax, dword [esp + 0x48]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x20]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0048b690
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret