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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4db968
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, ecx
test esi, esi
je 0x4911df
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4911df
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4911df
push ebx
push ebp
lea ecx, [esp + 0x3c]
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x4c]
push 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
sub ecx, eax
push 0xfffffffffffffffb
lea edx, [esp + 0x24]
add edi, ecx
push 0xfffffffffffffffc
push edx
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_InflateRect]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esi + 0x70]
mov edi, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x54]
sub ebx, ebp
call fcn.004ad3cf
mov eax, dword [esi + 0x40]
mov dword [esp + 0x6c], 0
test eax, eax
je 0x49112b
jmp 0x49107e
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov ebp, dword [eax + 8]
lea eax, [esi + 0x5c]
push 1
mov edx, dword [ebp]
push eax
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x58]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x18]
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
lea edx, [eax + edi]
cmp edx, dword [esp + 0x28]
jle 0x4910c5
mov edx, dword [esp + 0x20]
cmp edi, edx
jne 0x4910bf
mov eax, dword [esp + 0x28]
sub eax, edx
jmp 0x4910c5
mov edi, edx
lea ebx, [ebx + ecx + 5]
mov ecx, dword [esi + 0x60]
lea edx, [eax + edi]
mov dword [esp + 0x30], edi
lea edi, [ebp + 0x30]
lea eax, [ecx + ebx]
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x491118
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [edi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 4], edx
mov edx, dword [ebp]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov ecx, ebp
call dword [edx + 0x2c]
mov eax, dword [esp + 0x14]
lea edi, [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x49107a
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x60]
mov edx, dword [esp + 0x24]
mov edi, dword [ecx + 8]
lea ecx, [eax + 5]
mov eax, dword [esp + 0x2c]
sub eax, edx
cdq
idiv ecx
mov ebx, eax
mov eax, dword [edi + 0x3c]
cdq
idiv ecx
sub eax, ebx
mov ebp, eax
test ebp, ebp
jle 0x4911c4
lea edi, [esi + 0x7c]
test edi, edi
je 0x491162
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x4911a7
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [esp + 0x38]
push 1
sub edx, eax
lea eax, [esp + 0x34]
push esi
dec edx
push eax
push 0x50000001
mov ecx, edi
mov dword [esp + 0x40], edx
call fcn.004b84b6
mov eax, dword [esi + 0x60]
push 1
add eax, 5
mov ecx, esi
imul eax, ebp
push eax
push 0
push 1
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ebx
call fcn.004a70ad
lea ecx, [esp + 0x50]
mov dword [esi + 0x64], 1
mov dword [esp + 0x6c], 0xffffffff
call fcn.004ad441
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret