Function at 0x4ca920
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 0x4ca94d
push eax
call fcn.004cbcc0
cmp eax, dword [esi + 0x15114]
jl 0x4cadbf
cmp eax, dword [esi + 0x15118]
jg 0x4cadbf
mov eax, dword [esi + 0x15108]
test eax, eax
je 0x4cadbf
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 0x4ca98d
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 0x4ca999
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 0x4ca9bf
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.004c6130
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.004cca40
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 0x4caa56
mov ebp, edx
mov edx, dword [eax + 0x38]
cmp ebp, edx
jl 0x4caa5f
mov ebp, edx
mov edx, dword [eax + 0x44]
test edx, edx
jne 0x4caac6
xor ebp, ebp
mov dword [esp + 0x7c], 0
test ecx, ecx
jle 0x4caaa0
lea ebx, [esi + 0x14cf0]
mov ecx, dword [ebx]
push ecx
mov ecx, esi
call fcn.004cc750
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 0x4caa7a
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 0x15108]
cmp eax, ebx
mov eax, ebx
cdq
jle 0x4caab5
idiv ecx
jmp 0x4caac4
idiv ecx
mov edx, dword [esi + 0x10dc]
mov ebp, dword [edx + 0x38]
cmp eax, ebp
jge 0x4caac6
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 0x4cac8c
mov ecx, dword [esp + 0x34]
lea ebx, [esi + 0x14cf0]
cmp eax, dword [esi + 0x15114]
jl 0x4cac43
mov edx, dword [esi + 0x10dc]
mov eax, dword [edx + 0x44]
test eax, eax
je 0x4cab1e
lea eax, [ecx + ebp]
mov dword [esp + 0x3c], eax
jmp 0x4cab91
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 0x4cab78
lea eax, [eax + ecx + 0x20]
mov dword [esp + 0x3c], eax
jmp 0x4cab7c
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x10dc]
sub eax, ecx
mov edx, dword [edx + 0x3c]
cmp eax, edx
jge 0x4cab91
add edx, ecx
mov dword [esp + 0x3c], edx
cmp ecx, dword [esp + 0x2c]
jg 0x4cac5f
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 0x4cabe0
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 0x4cac12
mov ecx, dword [esp + 0x80]
cmp ecx, 0xffffffff
jne 0x4cabfa
mov eax, dword [ebx]
push 0
push 1
lea ecx, [esp + 0x3c]
push eax
push ecx
jmp 0x4cac0a
mov eax, dword [ebx]
cmp eax, ecx
jne 0x4cac12
push 0
push 1
lea edx, [esp + 0x3c]
push eax
push edx
push edi
mov ecx, esi
call fcn.004cb130
mov eax, dword [esi + 0x10dc]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4cac3b
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 0x4caafc
jmp 0x4cac6a
mov eax, dword [esp + 0x7c]
dec eax
mov dword [esi + 0x15118], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cac88
mov ecx, dword [esp + 0x14]
push 0
push 1
lea edx, [esp + 0x5c]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004cb130
mov ebx, dword [esp + 0x2c]
mov eax, dword [esi + 0x10dc]
mov dword [esp + 0x7c], 0
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4caca9
mov dword [esp + 0x7c], 0x18
mov eax, dword [esp + 0x80]
cmp eax, 0xffffffff
jne 0x4caceb
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 0x4cad94
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 0x4cad4e
mov eax, dword [esi + 0x10d0]
test eax, eax
je 0x4cad4e
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 0x4cad4e
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