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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x609378
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push edi
mov eax, dword [0x6963f4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edx, esi
call fcn.00474d10
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x4755a8
cmp dword [esi + 0x58], ebx
jne 0x47516f
mov edx, esi
call fcn.00474d10
cmp dword [esi + 0x23c], ebx
je 0x47515f
cmp eax, 1
jle 0x4755a8
cmp dword [esi + 0x240], ebx
je 0x47516f
cmp eax, ebx
je 0x4755a8
cmp dword [esi + 0xa0], ebx
je 0x4755a8
cmp dword [esi + 0x23c], ebx
je 0x4751d4
cmp edi, 1
jg 0x4751d4
xor edi, edi
cmp dword [esi + 0x74], ebx
jle 0x4755a8
mov ebx, dword [sym.imp.user32.dll_SetRectEmpty]
lea esp, [esp]
test edi, edi
jl 0x4751cf
cmp edi, dword [esi + 0x68]
jge 0x4751cf
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 0x4751a0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.00564f58
cmp dword [esi + 0x17c], ebx
je 0x4751ff
mov edx, dword [esi + 0x148]
push edx
call dword [sym.imp.user32.dll_IsWindowVisible]
cmp eax, ebx
jne 0x4751ff
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.0056fab6
mov dword [esp + 0x78], ebx
cmp dword [esi + 0x54], ebx
lea eax, [esi + 0x210]
jne 0x47521d
mov eax, 0x6b4b2c
push eax
lea ecx, [esp + 0x5c]
call fcn.0056fdc2
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 0x47538f
jmp 0x475256
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4751cf
cmp eax, dword [esi + 0x68]
jge 0x4751cf
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 0x475288
xor edi, edi
cmp dword [ebx + 0x1c], 0
je 0x4752b3
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 0x4752ba
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 0x475373
cmp dword [esi + 0x5c], 1
jne 0x47530c
push 2
push eax
push edi
call dword [sym.imp.user32.dll_OffsetRect]
xor eax, eax
cmp dword [esi + 0x54], eax
jne 0x475341
lea ecx, [esi + 0xb8]
cmp ecx, eax
je 0x475341
cmp dword [ecx + 0x20], eax
je 0x475341
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.0058728b
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 0x475373
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 0x475252
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
cmp dword [esi + 0x54], 0
jne 0x475578
cmp ecx, dword [esi + 0x88]
jl 0x475578
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 0x4753fa
test ecx, ecx
jl 0x4751cf
cmp ecx, dword [esi + 0x68]
jge 0x4751cf
mov eax, dword [esi + 0x64]
lea edx, [eax + ecx*4]
mov edx, dword [edx]
cmp dword [edx + 0x1c], 0
je 0x4753f2
mov edx, dword [edx + 0x28]
cmp edx, ebx
jge 0x4753f2
mov eax, ebx
sub eax, edx
add dword [esp + 0x18], eax
sub edi, 1
add ecx, 1
cmp ecx, dword [esi + 0x74]
jl 0x4753c1
test edi, edi
jg 0x475408
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x47558e
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 0x475571
test eax, eax
jl 0x4751cf
cmp eax, dword [esi + 0x68]
jge 0x4751cf
mov ecx, dword [esi + 0x64]
mov edi, dword [ecx + eax*4]
cmp dword [edi + 0x1c], 0
lea ecx, [ecx + eax*4]
je 0x475561
cmp dword [edi + 8], 0xffffffff
mov eax, dword [esi + 0xb4]
mov edx, dword [esi + 0xb0]
mov dword [esp + 0x34], eax
jne 0x47546a
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 0x47547e
mov eax, ebx
lea ecx, [edx + 4]
cmp ebx, ecx
jge 0x4754a1
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 0x4754ad
mov ecx, dword [edi + 4]
cmp dword [ecx - 0xc], 0
jne 0x4754ad
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 0x475545
cmp dword [esi + 0x5c], 1
jne 0x4754fa
push 2
push 0
push ebx
call dword [sym.imp.user32.dll_OffsetRect]
lea ecx, [esi + 0xb8]
xor eax, eax
cmp ecx, eax
je 0x475534
cmp dword [ecx + 0x20], eax
je 0x475534
cmp dword [esp + 0x30], eax
je 0x475515
mov eax, ebx
jmp 0x475529
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.0058728b
cmp dword [esi + 0x5c], 1
jne 0x475545
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 0x475561
add dword [esp + 0x10], 1
add eax, 1
cmp eax, dword [esi + 0x74]
mov dword [esp + 0x14], eax
jl 0x47542e
mov edx, dword [esp + 0x1c]
push edx
jmp 0x47558e
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.0056fdc2
lea ecx, [esp + 0x58]
mov dword [esp + 0x78], 0xffffffff
call fcn.0056fb0a
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret