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

Disassembly:
push 0xffffffffffffffff
push 0x5ef238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
test eax, eax
mov esi, ecx
mov dword [esp + 0x10], 0
jne 0x4c7066
push 1
call fcn.004b5bd0
mov ecx, dword [esi + 0x74]
lea edi, [esi + 0x74]
cmp ecx, eax
mov dword [esp + 0x68], eax
jge 0x4c6eb3
test ebp, ebp
jne 0x4c6e94
push ecx
mov ecx, esi
call fcn.004c7340
mov dword [esp + 0x10], 1
jmp 0x4c7066
mov ecx, dword [esi + 0x78]
push 0
push 1
push 0
push ecx
push eax
mov ecx, esi
call fcn.004c63e0
mov dword [esp + 0x10], 1
jmp 0x4c7066
jle 0x4c7066
cmp ebp, 1
jne 0x4c6ef1
mov ecx, esi
call fcn.004c6d60
cmp dword [edi], eax
jle 0x4c706b
mov edx, dword [esi + 0x78]
push 0
push ebp
push 0
push edx
push eax
mov ecx, esi
call fcn.004c63e0
push ebp
push 0
mov ecx, esi
mov dword [esp + 0x18], ebp
call fcn.004b6670
jmp 0x4c7231
mov ebx, dword [edi]
mov ecx, esi
call fcn.004c6bb0
mov edx, dword [esp + 0x68]
mov ecx, ebx
shl eax, 1
sub ecx, edx
cmp ecx, eax
jle 0x4c6f1d
push ebx
mov ecx, esi
call fcn.004c6bf0
mov dword [esp + 0x10], 1
jmp 0x4c7066
lea ecx, [esp + 0x40]
call fcn.004918b0
lea edx, [esp + 0x68]
push edi
push edx
lea eax, [esp + 0x48]
push 0
push eax
mov ecx, esi
mov dword [esp + 0x6c], 0
call fcn.0049b470
mov ecx, dword [esp + 0x68]
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call fcn.004c6b50
mov ebx, eax
mov eax, dword [edi]
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, esi
call fcn.004c6b50
test ebx, ebx
mov edi, eax
je 0x4c7049
test edi, edi
je 0x4c7049
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edi, dword [edi + 0x18]
sub edx, ecx
cmp edi, edx
mov dword [esp + 0x18], edi
jle 0x4c7049
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov ecx, eax
shr ecx, 6
neg eax
sbb eax, eax
and eax, edi
mov edi, eax
lea eax, [ecx - 2]
test eax, eax
jl 0x4c7049
mov ecx, eax
shl ecx, 6
lea ecx, [ecx + edi + 0x10]
mov ebp, dword [ecx + 0xc]
sub ebp, dword [ecx]
add ebp, dword [esp + 0x18]
cmp ebp, edx
jg 0x4c6fe2
dec eax
sub ecx, 0x40
test eax, eax
jge 0x4c6fcb
jmp 0x4c7049
test eax, eax
jl 0x4c7049
inc eax
mov edx, dword [ebx + 0x1c]
shl eax, 6
mov ecx, dword [ebx + 0x10]
add edi, eax
mov eax, dword [edi + 0x1c]
mov ebp, dword [edi + 0x10]
sub eax, ebp
sub eax, edx
add eax, ecx
je 0x4c7049
push 2
push 0
lea edx, [esp + 0x38]
push 0
lea ecx, [esp + 0x3c]
push edx
push ecx
push eax
push 0
mov ecx, esi
call fcn.005bd5ab
push 1
mov ecx, esi
call fcn.004c5d50
test eax, eax
je 0x4c7032
mov edx, dword [edi + 0x20]
mov ecx, eax
push edx
call fcn.004c7340
mov eax, dword [edi + 0x20]
push 1
push eax
push 1
mov ecx, esi
call fcn.004b5c20
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x40], 0x5f7940
call fcn.00491ab0
mov ebp, dword [esp + 0x64]
cmp ebp, 1
jne 0x4c707b
push 1
push 0
mov ecx, esi
call fcn.004b6670
jmp 0x4c7231
push 0
mov ecx, esi
call fcn.004b5bd0
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x20]
mov ebp, eax
push ecx
push edx
mov dword [esp + 0x6c], ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, 0x675360
call fcn.00504db0
push 0
push 0
push 0
add eax, 0x16
push 0
push 0
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x74]
push 0
push 0
push 0
push eax
mov ecx, esi
call fcn.0049ce70
cmp eax, 0xd
jne 0x4c70df
test ebp, ebp
je 0x4c720d
mov ecx, dword [0x6754c8]
mov edi, ebp
jmp 0x4c717a
mov eax, dword [esi + 0x78]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x74]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004b8cb0
cmp eax, 1
jne 0x4c720d
mov ecx, dword [esi + 0x80]
mov edi, dword [esp + 0x14]
inc ecx
mov edx, dword [esp + 0x1c]
imul ecx, dword [0x675b18]
mov ebx, dword [esp + 0x20]
lea eax, [edi + edx]
add edi, ecx
cmp edi, ebx
mov dword [esp + 0x14], edi
jge 0x4c7140
mov ecx, dword [0x6754c8]
mov eax, ebx
sub eax, edi
cdq
idiv ecx
lea edi, [eax + 1]
cmp ebp, edi
jge 0x4c717a
mov edi, ebp
jmp 0x4c717a
mov edx, dword [esp + 0x28]
cmp eax, edx
jle 0x4c720d
mov ecx, dword [0x6754c8]
lea ebp, [ecx + ebx]
cmp edi, ebp
jle 0x4c720d
sub eax, edx
cdq
idiv ecx
lea ebp, [eax + 1]
mov eax, edi
sub eax, ebx
cdq
idiv ecx
cmp eax, ebp
jl 0x4c7172
mov eax, ebp
mov ebp, dword [esp + 0x64]
neg eax
mov edi, eax
cmp edi, 0x7fffffff
je 0x4c720d
imul ecx, edi
push 2
push 0
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push ecx
mov ecx, esi
call fcn.005bd5ab
push 1
mov ecx, esi
call fcn.004c5c80
mov ebx, eax
test ebx, ebx
je 0x4c71f5
mov edx, dword [ebx + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, 0x675360
call fcn.00504db0
mov edx, dword [0x6754c8]
add eax, 0x16
imul edx, edi
mov dword [esp + 0x20], eax
push 2
push 0
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push edx
mov ecx, ebx
call fcn.005bd5ab
sub ebp, edi
push 1
push ebp
push 0
mov ecx, esi
call fcn.004b5c20
mov dword [esp + 0x10], 1
jmp 0x4c7215
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c7231
push 1
push 0
mov ecx, esi
call fcn.004b6670
cmp dword [esp + 0x6c], 1
jne 0x4c7231
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 0xc