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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x64
cmp eax, 0xffffffff
push esi
mov esi, ecx
je 0x4c951d
push eax
call fcn.004ca890
cmp eax, dword [esi + 0x15114]
jl 0x4c998f
cmp eax, dword [esi + 0x15118]
jg 0x4c998f
mov eax, dword [esi + 0x15108]
test eax, eax
je 0x4c998f
mov eax, dword [esp + 0x70]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_CopyRect]
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
call ebp
mov eax, dword [esi + 0x10dc]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4c955d
mov edx, dword [esi + 0x70c]
mov ecx, dword [esp + 0x2c]
sub ecx, edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4c9569
sub dword [esp + 0x2c], 0x18
lea eax, [esp + 0x24]
lea edi, [esi + 0x15170]
push eax
push edi
call ebp
mov ecx, dword [esi + 0x10dc]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4c958f
push 0
push 0x18
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebx, dword [esp + 0x78]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
sub edx, ecx
mov edi, eax
mov eax, dword [esp + 0x2c]
push edx
sub eax, dword [esp + 0x28]
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [esp + 0x28], eax
call ebx
push 0
lea ecx, [esi + 0x28]
mov dword [esp + 0x20], eax
call fcn.004c4d10
push eax
push edi
call ebx
push 1
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esp + 0x24]
push ecx
push edi
mov ecx, esi
call fcn.004cb610
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
push edx
push eax
call ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esi + 0x15108]
mov eax, ebx
sub eax, ebp
sub eax, 3
cdq
idiv ecx
mov ebp, eax
mov eax, dword [esi + 0x10dc]
mov edx, dword [eax + 0x3c]
cmp ebp, edx
jg 0x4c9626
mov ebp, edx
mov edx, dword [eax + 0x38]
cmp ebp, edx
jl 0x4c962f
mov ebp, edx
mov edx, dword [eax + 0x44]
test edx, edx
jne 0x4c9696
xor ebp, ebp
mov dword [esp + 0x7c], 0
test ecx, ecx
jle 0x4c9670
lea ebx, [esi + 0x14cf0]
mov ecx, dword [ebx]
push ecx
mov ecx, esi
call fcn.004cb320
mov ecx, dword [esp + 0x7c]
add ebx, 4
add ecx, eax
mov eax, dword [esi + 0x15108]
inc ebp
mov dword [esp + 0x7c], ecx
cmp ebp, eax
jl 0x4c964a
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 0x15108]
cmp eax, ebx
mov eax, ebx
cdq
jle 0x4c9685
idiv ecx
jmp 0x4c9694
idiv ecx
mov edx, dword [esi + 0x10dc]
mov ebp, dword [edx + 0x38]
cmp eax, ebp
jge 0x4c9696
mov ebp, eax
mov edx, dword [esi + 0x15110]
lea eax, [ecx - 1]
mov dword [esi + 0x15118], eax
mov eax, dword [esi + edx*4 + 0x14cf0]
mov dword [esp + 0x14], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x7c], eax
jle 0x4c985c
mov ecx, dword [esp + 0x34]
lea ebx, [esi + 0x14cf0]
cmp eax, dword [esi + 0x15114]
jl 0x4c9813
mov edx, dword [esi + 0x10dc]
mov eax, dword [edx + 0x44]
test eax, eax
je 0x4c96ee
lea eax, [ecx + ebp]
mov dword [esp + 0x3c], eax
jmp 0x4c9761
add ecx, ebp
lea edx, [esp + 0x44]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x44]
push 0x424
push eax
mov eax, dword [ebx]
push 0xffffffffffffffff
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
lea edx, [esi + ecx*4 + 0x10f0]
push edx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
sub eax, ecx
lea ecx, [ebp - 0x20]
cmp eax, ecx
mov ecx, dword [esp + 0x34]
jge 0x4c9748
lea eax, [eax + ecx + 0x20]
mov dword [esp + 0x3c], eax
jmp 0x4c974c
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x10dc]
sub eax, ecx
mov edx, dword [edx + 0x3c]
cmp eax, edx
jge 0x4c9761
add edx, ecx
mov dword [esp + 0x3c], edx
cmp ecx, dword [esp + 0x2c]
jg 0x4c982f
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx]
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
lea edx, [esi + ecx*4 + 0x1200]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 0x15110]
cmp ecx, eax
jne 0x4c97b0
lea ecx, [esp + 0x34]
lea edx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [esp + 0x10], 1
jmp 0x4c97e2
mov ecx, dword [esp + 0x80]
cmp ecx, 0xffffffff
jne 0x4c97ca
mov eax, dword [ebx]
push 0
push 1
lea ecx, [esp + 0x3c]
push eax
push ecx
jmp 0x4c97da
mov eax, dword [ebx]
cmp eax, ecx
jne 0x4c97e2
push 0
push 1
lea edx, [esp + 0x3c]
push eax
push edx
push edi
mov ecx, esi
call fcn.004c9d00
mov eax, dword [esi + 0x10dc]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4c980b
mov eax, dword [ebx]
push 0
push 0x18
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
lea edx, [esi + ecx*4 + 0x1200]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x7c]
mov edx, dword [esi + 0x15108]
inc eax
add ebx, 4
cmp eax, edx
mov dword [esp + 0x7c], eax
jl 0x4c96cc
jmp 0x4c983a
mov eax, dword [esp + 0x7c]
dec eax
mov dword [esi + 0x15118], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c9858
mov ecx, dword [esp + 0x14]
push 0
push 1
lea edx, [esp + 0x5c]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004c9d00
mov ebx, dword [esp + 0x2c]
mov eax, dword [esi + 0x10dc]
mov dword [esp + 0x7c], 0
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4c9879
mov dword [esp + 0x7c], 0x18
mov eax, dword [esp + 0x80]
cmp eax, 0xffffffff
jne 0x4c98bb
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
push 0xcc0020
push 0
push 0
sub ecx, esi
push edi
sub ebx, eax
mov eax, dword [esp + 0x88]
push ecx
push ebx
push 0
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x4c9964
lea ecx, [eax + eax*4]
lea edx, [esp + 0x64]
shl ecx, 4
sub ecx, eax
lea ebp, [esi + ecx*4]
lea ebx, [ebp + 0x1200]
push ebx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esi + 0x15110]
mov ecx, dword [esp + 0x80]
cmp ecx, dword [esi + eax*4 + 0x14cf0]
jne 0x4c991e
mov eax, dword [esi + 0x10d0]
test eax, eax
je 0x4c991e
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esi + 0x15110]
mov eax, dword [esi + 0x15114]
cmp edx, eax
jne 0x4c991e
mov eax, dword [esi + 0x10d0]
mov ecx, dword [ebx]
add ecx, eax
mov dword [ebx], ecx
mov ecx, dword [ebx]
mov esi, dword [esp + 0x7c]
mov eax, dword [ebp + 0x1204]
mov edx, ecx
push 0xcc0020
sub edx, esi
push eax
push edx
mov edx, dword [ebp + 0x120c]
push edi
sub edx, eax
push edx
mov edx, dword [ebp + 0x1208]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x94]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x64]
push ecx
push ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push edi
call esi
mov eax, dword [esp + 0x1c]
push eax
push edi
call esi
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x64
ret 0xc