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

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffa8
mov edi, edx
mov ebx, eax
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebx + 0x44]
push eax
lea ecx, [ebx + 0xc]
lea edx, [ebx + 0x34]
mov eax, dword [ebx + 0x38]
call fcn.004b57c8
mov eax, ebx
call fcn.004cb5c8
test al, al
je 0x4caadb
lea eax, [esp + 0x40]
call fcn.004e3b50
lea edx, [esp + 0x40]
lea eax, [ebx + 0xc]
call fcn.00408448
test al, al
jne 0x4ca9d3
xor eax, eax
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x4caa3a
mov eax, dword [ebx + 0x40]
sar eax, 1
jns 0x4ca9dd
adc eax, 0
mov edx, dword [ebx + 0x18]
sub edx, eax
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call fcn.004083e8
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x44]
call fcn.004e3b50
lea edx, [esp + 0x44]
pop eax
call fcn.00408448
test al, al
je 0x4caa27
movzx eax, byte [ebx + 0x84]
inc eax
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x4caa3a
xor eax, eax
mov dword [ebx + 0x7c], eax
movzx eax, byte [ebx + 0x84]
inc eax
mov dword [ebx + 0x80], eax
push esp
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_BeginPaint
xor edx, edx
mov eax, dword [ebx + 0x68]
call fcn.00532298
test al, al
jne 0x4caacc
mov eax, dword [edi + 4]
test eax, eax
jne 0x4caa66
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_GetDC
mov esi, eax
jmp 0x4caa68
mov esi, eax
mov eax, dword [ebx + 0x68]
mov byte [eax + 0x94], 1
mov eax, ebx
call fcn.004cad94
push 0xcc0020
push 0
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
call fcn.00435dc4
call fcn.00431368
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebx + 0x78]
push eax
push 0
mov eax, dword [ebx + 0x78]
push eax
push esi
call sub.gdi32.dll_BitBlt
cmp dword [edi + 4], 0
je 0x4caacc
push esi
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_ReleaseDC
push esp
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_EndPaint
jmp 0x4cabff
lea eax, [esp + 0x40]
call fcn.004e3b50
lea edx, [esp + 0x40]
lea eax, [ebx + 0xc]
call fcn.00408448
test al, al
jne 0x4cab03
xor eax, eax
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x4cab6a
mov eax, dword [ebx + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [ebx + 0x3c]
sar eax, 1
jns 0x4cab16
adc eax, 0
mov ecx, dword [ebx + 0x14]
sub ecx, eax
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call fcn.004083e8
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x44]
call fcn.004e3b50
lea edx, [esp + 0x44]
pop eax
call fcn.00408448
test al, al
je 0x4cab57
movzx eax, byte [ebx + 0x84]
inc eax
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x4cab6a
xor eax, eax
mov dword [ebx + 0x7c], eax
movzx eax, byte [ebx + 0x84]
inc eax
mov dword [ebx + 0x80], eax
push esp
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_BeginPaint
xor edx, edx
mov eax, dword [ebx + 0x68]
call fcn.00532298
test al, al
jne 0x4cabf5
mov eax, dword [edi + 4]
test eax, eax
jne 0x4cab96
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_GetDC
mov esi, eax
jmp 0x4cab98
mov esi, eax
mov eax, dword [ebx + 0x68]
mov byte [eax + 0x94], 1
mov eax, ebx
call fcn.004cad94
push 0xcc0020
push 0
push 0
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
call fcn.00435dc4
call fcn.00431368
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
push esi
call sub.gdi32.dll_BitBlt
cmp dword [edi + 4], 0
je 0x4cabf5
push esi
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_ReleaseDC
push esp
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_EndPaint
add esp, 0x58
pop edi
pop esi
pop ebx
ret