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

Disassembly:
push 0xffffffffffffffff
push 0x540ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, ecx
mov dword [esp + 4], ebx
cmp dword [ebx + 0x3c], 1
jne 0x4a7ec2
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
cmp esi, 0xffffffff
jne 0x4a7b98
mov esi, dword [ebx + 0x74]
lea ecx, [esp + 0x54]
call fcn.00470b30
mov ecx, dword [esp + 0x80]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x70], edi
jne 0x4a7bc5
push edi
push edi
lea eax, [esp + 0x5c]
push edi
push eax
mov ecx, ebx
call fcn.0047a540
lea ecx, [esp + 0x54]
mov eax, dword [ecx + 0x10]
cmp eax, edi
jne 0x4a7bd0
xor ebx, ebx
jmp 0x4a7bdc
mov ecx, dword [ecx + 8]
mov dword [esp + 0x80], ecx
mov ebx, ecx
shr eax, 6
mov ecx, eax
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x14], edi
jle 0x4a7ea6
lea edx, [ebx + 0x24]
cmp dword [edx - 4], esi
jne 0x4a7bfb
cmp dword [edx], edi
je 0x4a7c08
inc eax
add edx, 0x40
cmp eax, ecx
jl 0x4a7bf2
jmp 0x4a7ea6
mov edx, eax
shl edx, 6
add ebx, edx
lea edx, [ecx - 1]
cmp eax, edx
mov dword [esp + 0x80], ebx
jge 0x4a7c24
lea edx, [ebx + 0x40]
mov dword [esp + 0x14], edx
cmp eax, ecx
jge 0x4a7ea6
mov ecx, ebx
call fcn.004935f0
cmp eax, 0xd
jne 0x4a7ea6
mov ecx, dword [ebx + 0x2c]
cmp dword [ecx + 0xc8], edi
jne 0x4a7c4b
xor ebp, ebp
jmp 0x4a7c51
mov ebp, dword [ecx + 0xc0]
mov edx, dword [ecx + 0x64]
lea eax, [ecx + 0x54]
cmp edx, edi
mov dword [esp + 0x18], eax
jne 0x4a7c63
xor eax, eax
jmp 0x4a7c66
mov eax, dword [eax + 8]
mov edx, dword [ebx + 0x28]
mov esi, dword [eax + edx*4]
lea eax, [esp + 0x78]
add esi, ebp
push eax
push esi
mov dword [esp + 0x80], edi
call fcn.004ca910
cmp eax, 2
jne 0x4a7ea6
or byte [esi + 7], 1
lea ecx, [esp + 0x2c]
xor esi, esi
call fcn.00470b30
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x70], 1
cmp byte [ecx], 1
je 0x4a7cc3
test esi, esi
je 0x4a7cb3
cmp edi, 1
jne 0x4a7cc3
sub ecx, ebp
push ecx
lea ecx, [esp + 0x30]
call fcn.00470df0
mov ecx, dword [esp + 0x78]
mov al, byte [ecx]
cmp al, 0x21
jne 0x4a7d07
inc esi
cmp edi, 1
jne 0x4a7cd7
or byte [ecx + 7], 1
mov ecx, dword [esp + 0x78]
add ecx, 9
mov dword [esp + 0x78], ecx
mov edx, dword [ecx]
lea eax, [ecx + edx + 4]
mov dword [esp + 0x78], eax
mov ecx, dword [eax]
lea eax, [eax + ecx + 4]
push eax
mov dword [esp + 0x7c], eax
call fcn.004c72c0
mov ecx, dword [esp + 0x7c]
add esp, 4
add ecx, eax
mov dword [esp + 0x78], ecx
jmp 0x4a7ca5
cmp al, 1
jne 0x4a7d10
test esi, esi
je 0x4a7d25
dec esi
push ecx
call fcn.004c7520
mov ecx, dword [esp + 0x7c]
add esp, 4
add ecx, eax
mov dword [esp + 0x78], ecx
jmp 0x4a7ca5
mov edi, dword [esp + 0x3c]
mov esi, dword [ebx + 0x20]
mov ecx, dword [esp + 0x10]
inc esi
shr edi, 2
push edi
push esi
call fcn.004a46d0
mov edx, dword [0x5922ec]
xor ebp, ebp
lea ebx, [edx - 1]
test ebx, ebx
jl 0x4a7d74
mov eax, dword [0x5922e8]
mov ecx, dword [eax + ebp*4]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x4a7d6f
cmp dword [ecx + 0x3c], 1
jne 0x4a7d6f
mov edx, dword [ecx + 0x54]
cmp edx, dword [eax + 0x54]
jne 0x4a7d6f
push edi
push esi
call fcn.004a46d0
inc ebp
cmp ebp, ebx
jle 0x4a7d4a
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x80]
mov eax, ecx
neg eax
sbb eax, eax
push ecx
and eax, ebx
push eax
mov eax, dword [ebp + 0x28]
lea ecx, [eax*4 + 4]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00471350
mov edi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x20]
mov eax, dword [edi + 0x74]
cmp eax, ecx
jle 0x4a7dbb
mov edx, dword [esp + 0x3c]
shr edx, 2
add edx, eax
mov dword [edi + 0x74], edx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xdc]
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4a7e67
lea ecx, [esp + 0x40]
call fcn.00470b30
push 0
push 0
lea eax, [esp + 0x48]
push 0
push eax
mov ecx, edi
mov byte [esp + 0x80], 2
call fcn.0047a540
mov ecx, dword [esp + 0x3c]
mov esi, dword [ebx + 0x20]
shr ecx, 2
add ecx, esi
push 0
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, edi
call fcn.004a3800
mov esi, eax
test esi, esi
je 0x4a7e51
mov eax, dword [ebx + 0x10]
push 0
push 0
lea ecx, [esp + 0x24]
push 0
mov dword [esp + 0x2c], eax
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x2c]
sub ecx, eax
push edx
push ecx
push 0
mov ecx, edi
call fcn.00515468
mov edx, dword [esi + 0x10]
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 1
mov dword [esp + 0x40], 0x5477b0
call fcn.00470d30
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, edi
call fcn.004a2b00
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 0
mov dword [esp + 0x2c], 0x5477b0
call fcn.00470d30
lea ecx, [esp + 0x54]
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x54], 0x5477b0
call fcn.00470d30
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x5c]
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc