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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc4
mov byte [esp], cl
mov esi, edx
mov ebx, eax
lea edx, [esp + 2]
mov eax, dword [ebx + 0x24c]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebx + 0x50]
movzx edx, word [eax + 0x52]
and dx, 1
cmp dx, 1
jne 0x4cb430
mov edx, dword [ebx + 0x24c]
cmp byte [edx + 0x277], 2
je 0x4cb522
cmp byte [edx + 0x271], 1
jne 0x4cb20e
cmp dword [eax + 0x24], 0
jl 0x4cb210
mov eax, dword [ebx + 0x50]
call fcn.00511f64
mov eax, dword [eax + 0xc8]
mov edx, dword [ebx + 0x50]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x2c]
push eax
push 7
call sub.user32.dll_GetSystemMetrics
mov edi, eax
pop eax
sub edi, eax
jmp 0x4cb210
xor edi, edi
mov eax, ebx
call fcn.004d1c10
mov ecx, eax
lea edx, [esp + 2]
mov eax, esi
call fcn.00508f28
cmp byte [ebx + 0x78], 0
je 0x4cb522
mov eax, dword [ebx + 0x50]
cmp dword [eax + 0x44], 0
je 0x4cb522
test edi, edi
jle 0x4cb522
push 0xcc0020
mov eax, ebx
call fcn.004cf20c
push eax
mov eax, ebx
call fcn.004cf174
push eax
mov ebp, dword [ebx + 0x50]
mov eax, dword [ebp + 0x44]
call fcn.00437b04
call fcn.00432ef8
push eax
mov eax, dword [ebx + 0x50]
call fcn.00511f64
mov eax, dword [eax + 0xc8]
mov edx, dword [ebp + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x2e]
sub eax, edi
push eax
lea eax, [esp + 0x16]
xor edx, edx
call fcn.005279a8
push eax
mov eax, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x1e]
push eax
push esi
call sub.gdi32.dll_BitBlt
push 0xcc0020
mov eax, ebx
call fcn.004cf20c
push eax
mov eax, ebx
call fcn.004cf174
push eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 0x44]
call fcn.00437b04
call fcn.00432ef8
push eax
lea eax, [esp + 0x12]
xor edx, edx
call fcn.005279bc
push eax
mov eax, dword [ebx + 0x50]
call fcn.00511f64
mov eax, dword [eax + 0xc8]
mov edx, dword [ebx + 0x50]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x2c]
sub eax, edi
push eax
mov eax, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x1e]
push eax
push esi
call sub.gdi32.dll_BitBlt
mov eax, dword [ebx + 0x50]
call fcn.00511f64
mov eax, dword [eax + 0xc8]
mov edx, dword [ebx + 0x50]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x30]
sub eax, edi
mov ebp, dword [esp + 0xa]
sub ebp, eax
push 0xcc0020
mov eax, ebx
call fcn.004cf20c
push eax
mov eax, ebx
call fcn.004cf174
add eax, ebp
push eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 0x44]
call fcn.00437b04
call fcn.00432ef8
push eax
lea eax, [esp + 0x12]
xor edx, edx
call fcn.005279bc
push eax
mov eax, dword [ebx + 0x50]
call fcn.00511f64
mov eax, dword [eax + 0xc8]
mov edx, dword [ebx + 0x50]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x2c]
sub eax, edi
push eax
mov eax, dword [esp + 0x1e]
push eax
push ebp
push esi
call sub.gdi32.dll_BitBlt
mov eax, dword [ebx + 0x50]
call fcn.00511f64
mov eax, dword [eax + 0xc8]
mov edx, dword [ebx + 0x50]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x32]
sub eax, edi
mov ebp, dword [esp + 0xe]
sub ebp, eax
push 0xcc0020
mov eax, ebx
call fcn.004cf20c
add eax, ebp
push eax
mov eax, ebx
call fcn.004cf174
push eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 0x44]
call fcn.00437b04
call fcn.00432ef8
push eax
mov eax, dword [ebx + 0x50]
call fcn.00511f64
mov eax, dword [eax + 0xc8]
mov edx, dword [ebx + 0x50]
mov edx, dword [edx + 0x24]
mov ecx, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, ecx
movsx eax, word [eax + edx*8 + 0x32]
sub eax, edi
push eax
mov eax, dword [esp + 0x1e]
push eax
push ebp
mov eax, dword [esp + 0x1e]
push eax
push esi
call sub.gdi32.dll_BitBlt
jmp 0x4cb522
movzx edx, byte [eax + 0x39]
mov byte [esp + 1], dl
cmp byte [eax + 0x38], 0
jne 0x4cb445
mov eax, ebx
call fcn.004cceec
mov edi, dword [ebx + 0x24c]
cmp byte [edi + 0x277], 2
je 0x4cb4ec
mov eax, dword [ebx + 0x24c]
call fcn.00459614
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x24c]
call fcn.004595d0
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00407eb0
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
mov eax, ebx
call fcn.004cf20c
push eax
mov eax, ebx
call fcn.004cf174
xor ecx, ecx
pop edx
call fcn.00407eb0
lea ecx, [esp + 0x38]
mov edx, dword [ebx + 0x50]
mov eax, edi
call fcn.00513634
lea ecx, [esp + 0x34]
xor edx, edx
xor eax, eax
call fcn.00407ecc
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebx + 0x24c]
call fcn.00461e10
push eax
push 0
movzx ecx, byte [ebx + 0x42]
or cl, byte [esp + 0xd]
mov edx, dword [ebx + 0x24c]
mov eax, esi
call fcn.004b051c
cmp byte [esp], 0
je 0x4cb522
mov eax, dword [ebx + 0x24c]
call fcn.004b02f0
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x5d1b08]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x60000
call fcn.00527884
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.004d1074
mov byte [ebx + 0x42], 0
add esp, 0x3c
pop ebp
pop edi
pop esi
pop ebx
ret