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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a2168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x5f0]
xor esi, esi
cmp eax, esi
je 0x49466c
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x49466c
mov ebp, dword [edi + 0x7c]
and ebp, 0xa000
neg ebp
lea ecx, [esp + 0x40]
sbb ebp, ebp
push ecx
neg ebp
push eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x48]
push edi
lea ecx, [esp + 0xa8]
mov dword [esp + 0x38], edx
call fcn.0047ce9f
cmp ebp, esi
mov dword [esp + 0xcc], esi
lea ecx, [esp + 0xa4]
je 0x4940c1
push 0x4d0f94
call fcn.0047d1e1
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x18], eax
jmp 0x4940d8
push 0x4d0fb4
call fcn.0047d1e1
mov ecx, dword [esp + 0x44]
inc ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x18], ecx
cmp dword [edi + 0x6e8], esi
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
je 0x4941b2
mov ecx, edi
call fcn.00488f56
test eax, eax
jne 0x4941b2
cmp dword [0x4d0ff8], esi
jne 0x4941b2
mov ecx, dword [edi + 0x6e8]
add ecx, 0xbc
call fcn.00471fec
cmp ebp, esi
mov eax, dword [edi + 0x6e8]
mov ecx, dword [eax + 0xb8]
mov dword [esp + 0x28], ecx
mov dword [eax + 0xb8], esi
je 0x494154
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
sub esi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x188]
jmp 0x49416a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x184]
mov ecx, dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x48]
sub eax, ecx
mov ecx, dword [edi + 0x6e8]
mov dword [esp + 0x50], eax
push ebp
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x60], esi
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x6e8]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], edx
mov dword [eax + 0xb8], ecx
xor esi, esi
mov eax, dword [edi + 0x5e8]
cmp eax, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], esi
je 0x494557
jmp 0x4941d2
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov esi, dword [eax + 8]
test esi, esi
mov edx, dword [eax]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
je 0x494555
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x1c], 1
call dword [eax + 0x184]
mov edx, dword [edi]
mov ecx, edi
mov ebp, eax
call dword [edx + 0x188]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0xc4]
mov dword [esp + 0xa8], eax
mov eax, dword [esi]
push edx
mov ecx, esi
mov dword [esp + 0xb0], ebp
call dword [eax + 0x18]
mov ecx, dword [esi + 0x24]
test ecx, ecx
mov ebp, dword [eax]
mov eax, dword [eax + 4]
je 0x494255
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x494255
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x184]
test byte [esi + 0xc], 1
je 0x49427b
cmp ebx, dword [esp + 0x18]
je 0x494273
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x494273
mov dword [esp + 0x30], 1
jmp 0x49427b
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0x50], ebx
je 0x4942ab
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x68], ebx
add ebx, ebp
add eax, ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x24], eax
jmp 0x4942c3
mov ecx, dword [esp + 0x40]
add ebp, ecx
mov dword [esp + 0x6c], ebx
add ebx, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebx
mov eax, dword [edi + 0x6e8]
test eax, eax
je 0x49435a
cmp esi, eax
je 0x49435a
mov ecx, edi
call fcn.00488f56
test eax, eax
jne 0x49435a
mov eax, dword [0x4d0ff8]
test eax, eax
jne 0x49435a
mov eax, dword [edi + 0x6e8]
mov ebp, dword [eax + 0xac]
test ebp, ebp
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
jg 0x494320
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x494320
cmp dword [ebp + 8], eax
jne 0x494320
mov ebp, dword [eax + 0xc8]
test ebp, ebp
jne 0x494320
xor ecx, ecx
xor edx, edx
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x494336
mov edx, dword [esp + 0x34]
sub edx, ecx
cmp dword [esp + 0x70], edx
jg 0x494342
jmp 0x49435a
mov ecx, dword [esp + 0x4c]
sub ecx, edx
cmp dword [esp + 0x74], ecx
jle 0x49435a
mov ebx, dword [esp + 0x50]
push esi
lea ecx, [eax + 0xbc]
mov dword [esp + 0x20], 0
call fcn.00472101
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x4c]
xor eax, eax
test ecx, ecx
sete al
cmp edx, eax
je 0x494377
mov edx, dword [esi]
push ecx
mov ecx, esi
mov dword [esi + 0x4c], eax
call dword [edx + 0x78]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x74]
push ecx
lea ebp, [esi + 0x30]
push ebp
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4943e8
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov dword [ebp], edx
mov edx, dword [esp + 0x98]
mov dword [ebp + 4], eax
mov eax, dword [esi]
mov dword [ebp + 8], ecx
mov ecx, esi
mov dword [ebp + 0xc], edx
call dword [eax + 0x2c]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4943fa
mov eax, dword [esi + 0xc]
and eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x49440d
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4941ca
mov eax, dword [esp + 0x14]
test eax, eax
je 0x494545
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
sub eax, ebp
sub eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov ecx, edi
mov dword [esp + 0x50], esi
call fcn.00488f56
test eax, eax
je 0x494523
test esi, esi
jle 0x494523
mov eax, dword [edi + 0x5a8]
test eax, eax
je 0x494523
mov ebp, dword [esp + 0x28]
lea ecx, [ecx]
mov edx, dword [esp + 0x28]
mov eax, ebp
mov ebx, dword [eax + 8]
mov eax, dword [ebx + 0x1c]
xor ecx, ecx
cmp ebp, edx
mov ebp, dword [ebp + 4]
sete cl
test eax, eax
je 0x494482
test ecx, ecx
je 0x494523
lea esi, [ebx + 0x30]
mov ecx, esi
mov edx, dword [ecx]
mov dword [esp + 0x7c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x80], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x84], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x50]
push 0
push ecx
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x94], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x88]
push ecx
push esi
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x49451b
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esi], edx
mov edx, dword [esp + 0x64]
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [esi + 8], ecx
mov ecx, ebx
mov dword [esi + 0xc], edx
call dword [eax + 0x2c]
test ebp, ebp
jne 0x494460
mov edx, dword [edi]
mov ebx, dword [esp + 0x18]
mov ecx, edi
mov dword [esp + 0x24], 0
call dword [edx + 0x184]
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + eax + 5]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4941ca
mov ebp, dword [esp + 0x14]
xor esi, esi
mov eax, dword [edi + 0x6e8]
cmp eax, esi
je 0x494644
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0xac]
test ecx, ecx
mov dword [esp + 0x64], edx
jg 0x494591
mov ecx, dword [eax + 0xc8]
test ecx, ecx
je 0x494604
mov ecx, edi
call fcn.00488f56
test eax, eax
jne 0x494604
mov eax, dword [0x4d0ff8]
test eax, eax
jne 0x494604
test ebp, ebp
mov eax, dword [esp + 0x64]
je 0x4945bd
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
dec ecx
mov ebx, ecx
sub ebx, edx
inc ebx
jmp 0x4945ca
mov ecx, dword [esp + 0x3c]
dec eax
mov esi, eax
sub esi, ecx
mov ecx, dword [esp + 0x60]
sub esp, 0x10
mov edx, esp
mov dword [edx], ebx
mov dword [edx + 4], esi
mov dword [edx + 8], ecx
mov ecx, dword [edi + 0x6e8]
mov dword [edx + 0xc], eax
call fcn.0042a750
mov edi, dword [edi + 0x6e8]
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x494644
mov eax, dword [edi]
push 1
mov ecx, edi
mov dword [edi + 0x4c], 0
call dword [eax + 0x78]
jmp 0x494644
sub esp, 0x10
xor eax, eax
mov ebx, esp
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebx + 4], ecx
mov ecx, dword [edi + 0x6e8]
xor edx, edx
mov dword [ebx + 8], edx
xor esi, esi
mov dword [ebx + 0xc], esi
call fcn.0042a750
mov edi, dword [edi + 0x6e8]
mov ecx, dword [edi + 0x4c]
mov eax, 1
cmp ecx, eax
je 0x494644
mov edx, dword [edi]
push esi
mov ecx, edi
mov dword [edi + 0x4c], eax
call dword [edx + 0x78]
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0xa8]
call fcn.0047d1e1
lea ecx, [esp + 0xa4]
mov dword [esp + 0xcc], 0xffffffff
call fcn.0047cefa
mov ecx, dword [esp + 0xc4]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret