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

Disassembly:
sub esp, 0xf0
mov eax, dword [esp + 0xf8]
push ebx
push ebp
push esi
xor esi, esi
mov ebx, ecx
cmp eax, esi
push edi
mov dword [esp + 0x14], ebx
je 0x44cf5f
mov dword [eax], esi
mov eax, dword [ebx + 8]
cmp eax, esi
mov eax, dword [esp + 0x104]
jne 0x44d23e
cmp eax, esi
je 0x44d242
mov edx, dword [eax + 4]
cmp edx, esi
je 0x44d23e
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x78]
push eax
push 0x54
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x44cfb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44d25a
push 0x57
jmp 0x44d254
mov edx, dword [esp + 0x8c]
xor ecx, ecx
cmp edx, esi
lea edi, [esp + 0x1c]
setne cl
mov ebp, ecx
mov ecx, 0xa
xor eax, eax
cmp ebp, esi
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
je 0x44cff4
mov ecx, 0xa
lea esi, [esp + 0x90]
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
jmp 0x44d07c
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8a]
mov word [esp + 0x28], cx
mov word [esp + 0x2a], ax
and eax, 0xffff
and ecx, 0xffff
imul eax, ecx
mov edx, dword [esp + 0x7c]
cmp eax, 8
mov dword [esp + 0x1c], 0x28
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], esi
ja 0x44d04f
mov edx, 1
mov ecx, eax
shl edx, cl
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xcc]
push eax
call fcn.0044c9e0
mov ax, word [esp + 0xd0]
cmp ax, 0x10
je 0x44d074
cmp ax, 0x20
jne 0x44d07c
mov dword [esp + 0x2c], 3
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
call fcn.0044c9e0
mov edx, dword [esp + 0x60]
test ebp, ebp
mov dword [ebx + 0x1c], edx
je 0x44d102
mov eax, dword [esp + 0x2c]
mov edi, 3
cmp eax, edi
jne 0x44d102
mov edx, dword [esp + 0xb8]
lea eax, [ebx + 0x20]
mov ecx, eax
mov esi, eax
mov dword [ecx], edx
mov edx, dword [esp + 0xbc]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xc0]
mov dword [ecx + 8], edx
lea edx, [ebx + 0x32]
mov eax, dword [esi]
test eax, eax
je 0x44d0f7
xor ecx, ecx
test al, 1
jne 0x44d0dc
shr eax, 1
inc ecx
test al, 1
je 0x44d0d5
mov word [edx - 6], cx
xor ecx, ecx
test al, 1
je 0x44d0ed
shr eax, 1
inc ecx
test al, 1
jne 0x44d0e6
mov eax, 8
sub eax, ecx
mov word [edx], ax
add esi, 4
add edx, 2
dec edi
jne 0x44d0c9
jmp 0x44d10e
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, ebx
call fcn.0044ceb0
mov edx, dword [esp + 0x70]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test ebp, ebp
mov ebx, eax
je 0x44d25a
test ebx, ebx
je 0x44d228
mov ecx, 0xa
lea esi, [esp + 0x1c]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x44d156
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x44d177
mov ecx, dword [esp + 0x14]
add ecx, 0x20
add eax, ebx
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x44d1cf
test edi, edi
je 0x44d1cf
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x44d1cf
mov edx, dword [esp + 0x104]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edx + 4]
push eax
push esi
call edi
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
add ecx, ebx
mov ebp, eax
push ecx
push edx
push 0
push esi
call dword [sym.imp.GDI32.dll_GetDIBColorTable]
push ebp
push esi
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x108]
test edx, edx
je 0x44d212
test edi, edi
je 0x44d212
mov eax, dword [esp + 0x2c]
cmp eax, 2
je 0x44d1ec
cmp eax, 1
jne 0x44d212
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x8c]
lea edi, [eax + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx], 1
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret 8
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf0
ret 8
cmp eax, esi
jne 0x44d246
push 0x57
jmp 0x44d254
cmp dword [eax + 4], esi
jne 0x44d24f
push 6
jmp 0x44d254
push 0x4df
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf0
ret 8