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

Disassembly:
sub esp, 0x4c
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4121b5
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4121b5
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4121b5
mov edx, dword [esp + 0x64]
test edx, edx
je 0x4121b5
test ecx, ecx
jge 0x411f91
movzx ecx, word [ebp + 0xc]
mov dword [esp + 0x60], ecx
test edx, edx
jge 0x411f9d
movzx edx, word [ebp + 0xe]
mov dword [esp + 0x64], edx
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
push ebx
mov dword [esp + 0x3c], ecx
push esi
movzx esi, word [ebp + 0xe]
mov dword [esp + 0x44], ecx
push edi
movzx edi, word [ebp + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], 1
mov word [esp + 0x42], 0x18
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x60]
push 0
push 0
lea edx, [esp + 0x24]
push edx
mov ebx, eax
push 0
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
push 0xcc0020
push edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x6c]
push eax
push ecx
push esi
push edi
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov esi, dword [ebp + 0x40]
lea eax, [edi + edi*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
xor ecx, ecx
shl eax, 2
cmp word [ebp + 0xe], cx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
jbe 0x412153
mov dword [esp + 0x18], ecx
lea ebx, [ebx]
mov edx, dword [esp + 0x1c]
add ecx, edx
cmp word [ebp + 0xc], 0
mov dword [esp + 0x10], 0
jbe 0x412134
lea esp, [esp]
mov bl, byte [esi + 3]
test bl, bl
jne 0x4120af
add ecx, 3
add esi, 4
jmp 0x41211b
cmp bl, 0xff
jne 0x4120c8
mov dl, byte [esi]
mov byte [ecx], dl
mov dl, byte [esi + 1]
inc esi
inc ecx
mov byte [ecx], dl
mov dl, byte [esi + 1]
inc esi
inc ecx
mov byte [ecx], dl
jmp 0x412117
movzx eax, byte [esi]
mov dl, bl
movzx edi, bl
movzx ebx, byte [ecx]
imul eax, edi
not dl
movzx edx, dl
imul ebx, edx
add eax, ebx
sar eax, 8
mov byte [ecx], al
movzx eax, byte [esi + 1]
movzx ebx, byte [ecx + 1]
imul eax, edi
inc esi
imul ebx, edx
inc ecx
add eax, ebx
sar eax, 8
mov byte [ecx], al
movzx eax, byte [esi + 1]
inc esi
imul eax, edi
movzx edi, byte [ecx + 1]
inc ecx
imul edi, edx
add eax, edi
sar eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x20]
inc ecx
add esi, 2
mov edx, dword [esp + 0x10]
movzx edi, word [ebp + 0xc]
inc edx
cmp edx, edi
mov dword [esp + 0x10], edx
jl 0x4120a0
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx edi, word [ebp + 0xe]
inc edx
add ecx, eax
cmp edx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
jl 0x412080
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x84]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov eax, dword [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x4c
ret 0x14
xor al, al
pop ebp
add esp, 0x4c
ret 0x14