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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x611298
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edx, esi
call fcn.00477140
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x4779d8
cmp dword [esi + 0x58], ebx
jne 0x47759f
mov edx, esi
call fcn.00477140
cmp dword [esi + 0x23c], ebx
je 0x47758f
cmp eax, 1
jle 0x4779d8
cmp dword [esi + 0x240], ebx
je 0x47759f
cmp eax, ebx
je 0x4779d8
cmp dword [esi + 0xa0], ebx
je 0x4779d8
cmp dword [esi + 0x23c], ebx
je 0x477604
cmp edi, 1
jg 0x477604
xor edi, edi
cmp dword [esi + 0x74], ebx
jle 0x4779d8
mov ebx, dword [sym.imp.user32.dll_SetRectEmpty]
lea esp, [esp]
test edi, edi
jl 0x4775ff
cmp edi, dword [esi + 0x68]
jge 0x4775ff
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + edi*4]
add ecx, 0xc
push ecx
call ebx
add edi, 1
cmp edi, dword [esi + 0x74]
jl 0x4775d0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.0056c8bd
cmp dword [esi + 0x17c], ebx
je 0x47762f
mov edx, dword [esi + 0x148]
push edx
call dword [sym.imp.user32.dll_IsWindowVisible]
cmp eax, ebx
jne 0x47762f
push 0x15
call dword [sym.imp.user32.dll_GetSystemMetrics]
neg eax
add eax, eax
add dword [esi + 0x80], eax
push esi
lea ecx, [esp + 0x5c]
call fcn.00577645
mov dword [esp + 0x78], ebx
cmp dword [esi + 0x54], ebx
lea eax, [esi + 0x210]
jne 0x47764d
mov eax, 0x6bd90c
push eax
lea ecx, [esp + 0x5c]
call fcn.00577951
mov ecx, dword [esi + 0x80]
sub ecx, dword [esi + 0x1d4]
mov dword [esp + 0x1c], eax
xor eax, eax
cmp dword [esi + 0x74], ebx
mov dword [esi + 0x1dc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jle 0x4777bf
jmp 0x477686
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4775ff
cmp eax, dword [esi + 0x68]
jge 0x4775ff
mov ecx, dword [esi + 0x64]
mov ebx, dword [ecx + eax*4]
cmp dword [ebx + 8], 0xffffffff
mov edx, dword [esi + 0xb4]
mov edi, dword [esi + 0xb0]
lea eax, [ecx + eax*4]
mov dword [esp + 0x2c], edx
jne 0x4776b8
xor edi, edi
cmp dword [ebx + 0x1c], 0
je 0x4776e3
mov eax, dword [ebx + 4]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x30]
push edx
push ecx
push eax
mov eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.gdi32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x30]
lea edx, [ecx + edi + 0xc]
mov dword [ebx + 0x28], edx
jmp 0x4776ea
mov dword [ebx + 0x28], 0
mov eax, dword [esi + 0x8c]
sub eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x84]
mov edi, dword [esp + 0x10]
mov edx, dword [ebx + 0x28]
lea eax, [eax + ecx - 2]
add edx, edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
lea edi, [ebx + 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x54]
xor eax, eax
cmp dword [ebx + 0x1c], eax
mov dword [edi + 8], edx
mov dword [edi + 0xc], ecx
je 0x4777a3
cmp dword [esi + 0x5c], 1
jne 0x47773c
push 2
push eax
push edi
call dword [sym.imp.user32.dll_OffsetRect]
xor eax, eax
cmp dword [esi + 0x54], eax
jne 0x477771
lea ecx, [esi + 0xb8]
cmp ecx, eax
je 0x477771
cmp dword [ecx + 0x20], eax
je 0x477771
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x2c]
push edx
push eax
push esi
call fcn.0058eaa4
xor eax, eax
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, dword [esp + 0x10]
lea ecx, [edx + ecx + 1]
mov edx, dword [edi + 8]
sub edx, dword [edi]
mov dword [esp + 0x10], ecx
add edx, 1
add dword [esi + 0x1dc], edx
cmp dword [esi + 0x54], eax
je 0x4777a3
mov eax, dword [esi + 0xa0]
cdq
sub eax, edx
sar eax, 1
add dword [ebx + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esi + 0x74]
mov dword [esp + 0x14], eax
jl 0x477682
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
cmp dword [esi + 0x54], 0
jne 0x4779a8
cmp ecx, dword [esi + 0x88]
jl 0x4779a8
mov eax, dword [esi + 0x88]
sub eax, dword [esi + 0x80]
xor ecx, ecx
cdq
idiv edi
cmp dword [esi + 0x74], ecx
mov dword [esp + 0x18], ecx
mov ebx, eax
jle 0x47782a
test ecx, ecx
jl 0x4775ff
cmp ecx, dword [esi + 0x68]
jge 0x4775ff
mov eax, dword [esi + 0x64]
lea edx, [eax + ecx*4]
mov edx, dword [edx]
cmp dword [edx + 0x1c], 0
je 0x477822
mov edx, dword [edx + 0x28]
cmp edx, ebx
jge 0x477822
mov eax, ebx
sub eax, edx
add dword [esp + 0x18], eax
sub edi, 1
add ecx, 1
cmp ecx, dword [esi + 0x74]
jl 0x4777f1
test edi, edi
jg 0x477838
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x4779be
mov eax, dword [esp + 0x18]
cdq
idiv edi
mov edx, dword [esi + 0x80]
mov dword [esp + 0x10], edx
add ebx, eax
xor eax, eax
cmp dword [esi + 0x74], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
jle 0x4779a1
test eax, eax
jl 0x4775ff
cmp eax, dword [esi + 0x68]
jge 0x4775ff
mov ecx, dword [esi + 0x64]
mov edi, dword [ecx + eax*4]
cmp dword [edi + 0x1c], 0
lea ecx, [ecx + eax*4]
je 0x477991
cmp dword [edi + 8], 0xffffffff
mov eax, dword [esi + 0xb4]
mov edx, dword [esi + 0xb0]
mov dword [esp + 0x34], eax
jne 0x47789a
xor edx, edx
mov eax, dword [edi + 0x28]
xor ecx, ecx
cmp eax, ebx
setg cl
test ecx, ecx
mov dword [esp + 0x30], ecx
je 0x4778ae
mov eax, ebx
lea ecx, [edx + 4]
cmp ebx, ecx
jge 0x4778d1
mov edx, dword [esi + 0x21c]
mov eax, dword [esi + 0x88]
lea eax, [eax + edx*2]
sub eax, dword [esi + 0x80]
cdq
idiv dword [esp + 0x20]
jmp 0x4778dd
mov ecx, dword [edi + 4]
cmp dword [ecx - 0xc], 0
jne 0x4778dd
lea eax, [edx + 8]
mov ecx, dword [esi + 0x8c]
mov ebx, dword [esp + 0x10]
sub ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x84]
add eax, ebx
lea ebx, [edi + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea ecx, [ecx + edx - 2]
mov edx, dword [esp + 0x24]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
cmp dword [esi + 0x54], 0
jne 0x477975
cmp dword [esi + 0x5c], 1
jne 0x47792a
push 2
push 0
push ebx
call dword [sym.imp.user32.dll_OffsetRect]
lea ecx, [esi + 0xb8]
xor eax, eax
cmp ecx, eax
je 0x477964
cmp dword [ecx + 0x20], eax
je 0x477964
cmp dword [esp + 0x30], eax
je 0x477945
mov eax, ebx
jmp 0x477959
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [edi + 0x2c]
push eax
push esi
call fcn.0058eaa4
cmp dword [esi + 0x5c], 1
jne 0x477975
push 2
push 0
push ebx
call dword [sym.imp.user32.dll_OffsetRect]
cmp dword [esp + 0x18], 0
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
jle 0x477991
add dword [esp + 0x10], 1
add eax, 1
cmp eax, dword [esi + 0x74]
mov dword [esp + 0x14], eax
jl 0x47785e
mov edx, dword [esp + 0x1c]
push edx
jmp 0x4779be
mov eax, dword [esi + 0xa0]
cdq
sub eax, edx
sar eax, 1
add dword [esi + 0x1dc], eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.00577951
lea ecx, [esp + 0x58]
mov dword [esp + 0x78], 0xffffffff
call fcn.00577699
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret