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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52885f
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x57bf70]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
call fcn.004e0285
mov esi, eax
push 0x10
mov dword [esp + 0x28], esi
call fcn.0047d781
pop ecx
mov dword [esp + 0x2c], eax
xor edi, edi
mov dword [esp + 0x80], edi
cmp eax, edi
je 0x4c8c31
mov ecx, eax
call fcn.004dc6c6
mov dword [esp + 0x14], eax
jmp 0x4c8c35
mov dword [esp + 0x14], edi
or dword [esp + 0x80], 0xffffffff
mov ecx, dword [esp + 0x14]
push esi
call fcn.00403c17
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 0x9c]
push eax
call fcn.0048fe9e
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
test byte [eax + 0x10], 1
je 0x4c8c73
mov eax, dword [ebx + 0x94]
push 0xcc0020
push edi
push eax
jmp 0x4c8c8b
cmp dword [ebx + 0x90], edi
je 0x4c8ca1
mov eax, dword [ebx + 0x94]
push 0xcc0020
push edi
lea ecx, [eax + eax]
push ecx
push dword [esp + 0x20]
mov ecx, esi
push dword [ebx + 0x98]
push eax
push edi
push edi
call fcn.004aaace
jmp 0x4c8cd1
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x94]
cmp edx, edi
jne 0x4c8cb9
xor edx, edx
jmp 0x4c8cbc
mov edx, dword [edx + 4]
push 0xcc0020
push edi
push edi
push edx
push eax
push ecx
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xb0]
cmp dword [eax - 0xc], edi
je 0x4c8d66
push 1
mov ecx, esi
call fcn.004f2ea9
mov eax, dword [esi]
lea ecx, [ebx + 0xc0]
push ecx
mov ecx, esi
call dword [eax + 0x28]
push dword [ebx + 0xc8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [ebx + 0xb0]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0xb0]
sub eax, dword [esp + 0x50]
mov edi, dword [ecx - 0xc]
cdq
mov dword [esp + 0x10], edi
push dword [esp + 0x10]
mov edi, dword [esi]
sub eax, edx
mov edx, dword [ebx + 0xac]
push ecx
sar eax, 1
push edx
push eax
mov ecx, esi
call dword [edi + 0x5c]
xor edi, edi
lea ecx, [ebx + 0x78]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x38
cdq
pop ecx
idiv ecx
mov dword [esp + 0x10], edi
test eax, eax
jbe 0x4c8f54
push ebx
lea ecx, [esp + 0x64]
call fcn.004d17a2
xor eax, eax
inc eax
mov dword [esp + 0x80], eax
push eax
lea ecx, [esp + 0x64]
call fcn.004f2ea9
push dword [esp + 0x10]
lea esi, [ebx + 0x78]
call fcn.0047afd0
push dword [eax + 0x14]
lea ecx, [esp + 0x64]
call fcn.00402836
push dword [esp + 0x10]
call fcn.0047afd0
push dword [eax + 8]
lea ecx, [esp + 0x64]
call fcn.004c77e1
lea eax, [esp + 0x30]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esp + 0x10]
call fcn.0047afd0
cmp byte [eax + 0x2c], 0
je 0x4c8e3e
lea esi, [esp + 0x30]
lea edi, [esp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.004c1a69
push 0x21
pop edi
push dword [esp + 0x10]
lea esi, [ebx + 0x78]
call fcn.0047afd0
cmp byte [eax + 0x2d], 0
je 0x4c8e1b
push 0x25
pop edi
jmp 0x4c8e2b
push dword [esp + 0x10]
call fcn.0047afd0
mov eax, dword [eax + 4]
add dword [esp + 0x44], eax
push dword [esp + 0x10]
call fcn.0047afd0
push edi
lea edx, [esp + 0x44]
jmp 0x4c8f0a
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
push dword [esp + 0x10]
sub edi, dword [esp + 0x34]
lea esi, [ebx + 0x78]
mov dword [esp + 0x1c], eax
call fcn.0047afd0
push dword [esp + 0x10]
sub edi, dword [eax + 0x28]
lea esi, [ebx + 0x78]
call fcn.0047afd0
push dword [esp + 0x18]
mov eax, dword [eax]
push edi
push 0
push eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [esp + 0x10]
call fcn.0047afd0
add eax, 0x20
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0x410
lea edx, [esp + 0x54]
push edx
push ecx
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x70]
call dword [eax + 0x68]
mov edi, dword [esp + 0x38]
push dword [esp + 0x10]
sub edi, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
lea esi, [ebx + 0x78]
mov dword [esp + 0x1c], eax
call fcn.0047afd0
push dword [esp + 0x10]
sub edi, dword [eax + 0x28]
lea esi, [ebx + 0x78]
call fcn.0047afd0
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
push eax
sub eax, dword [esp + 0x20]
push edi
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [esp + 0x10]
call fcn.0047afd0
push 0x10
lea edx, [esp + 0x54]
add eax, 0x20
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push edx
push ecx
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x70]
call dword [eax + 0x68]
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.0046c567
lea ecx, [ebx + 0x78]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x38
cdq
pop ecx
idiv ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], eax
jb 0x4c8d81
mov esi, dword [esp + 0x24]
xor edi, edi
push dword [esp + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov esi, dword [esp + 0x14]
push dword [esp + 0x2c]
mov ecx, esi
call fcn.0048fe9e
cmp esi, edi
je 0x4c8f7b
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4