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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x94
test eax, eax
je 0x4cd115
mov eax, dword [esp + 0x98]
test eax, eax
je 0x4cd115
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb0]
push edi
push 0x6e
mov ebp, dword [esi]
mov ecx, dword [esi + 4]
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x18], ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
call ebx
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x4cd105
mov eax, dword [esp + 0xac]
lea edx, [esp + 0x8c]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [esi + 4]
sub ecx, edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x54], ecx
sub edx, eax
xor eax, eax
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x5c], edx
push eax
push ecx
lea edx, [esp + 0x5c]
push eax
push edx
push edi
mov dword [esp + 0x68], 0x28
mov word [esp + 0x74], 1
mov word [esp + 0x76], 0x20
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
test edi, edi
je 0x4cd0fa
mov eax, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
push ecx
call ebx
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x4cd0e3
lea edx, [esp + 0x38]
push edx
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x44]
mov ecx, eax
and ecx, reloc.oledlg.dll_OleUIInsertObjectA
jns 0x4ccf29
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x4ccf41
inc eax
mov edx, eax
and edx, reloc.oledlg.dll_OleUIInsertObjectA
jns 0x4ccf3b
dec edx
or edx, 0xfffffffc
inc edx
jne 0x4ccf2b
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x14]
push 3
push edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov eax, dword [esp + 0xac]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb8]
push 0xcc0020
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
sub ecx, edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax]
mov eax, dword [esi + 0xc]
sub edx, ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
push 0
push 0
sub eax, edx
push ebx
push eax
sub ecx, dword [esi]
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x20], 0
lea edi, [eax - 1]
imul edi, dword [esp + 0x44]
add edi, edx
test eax, eax
mov dword [esp + 0x1c], edi
jle 0x4cd0d0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x3c]
xor esi, esi
test edx, edx
jle 0x4cd0b0
mov ebx, dword [edi + esi*4]
lea eax, [edi + esi*4]
xor edx, edx
mov dword [esp + 0x30], esi
mov dl, byte [eax + 1]
mov dh, byte [eax]
shr ebx, 0x10
shl edx, 8
and ebx, 0xff
or edx, ebx
mov ebx, dword [esp + 0xb0]
cmp edx, ebx
mov dword [esp + 0x18], edx
je 0x4cd09b
cmp esi, dword [esp + 0x3c]
jge 0x4cd031
mov edi, dword [eax + 4]
add eax, 4
xor ebx, ebx
inc esi
mov bl, byte [eax + 1]
mov bh, byte [eax]
shr edi, 0x10
shl ebx, 8
and edi, 0xff
or ebx, edi
cmp ebx, edx
je 0x4cd00b
mov edx, dword [esp + 0x30]
lea edi, [ecx + 1]
lea ebx, [esi + ebp]
push edi
add ebp, edx
push ebx
push ecx
lea eax, [esp + 0x88]
push ebp
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x10]
push edi
push ebx
push edx
push ebp
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0xa8]
push ebx
push edi
push eax
call dword [sym.imp.GDI32.dll_FillRgn]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
push edi
call ebx
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
dec esi
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
jl 0x4ccfd9
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
sub edi, edx
mov edx, dword [esp + 0x20]
inc edx
inc ecx
cmp edx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
jl 0x4ccfcb
mov ecx, dword [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret