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

Disassembly:
sub esp, 0x4c
push edi
mov edi, dword [esp + 0x64]
test edi, edi
je 0x414ce7
push esi
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x414ce6
push ebx
mov bl, byte [esp + 0x74]
test bl, bl
je 0x414ce5
mov eax, dword [esp + 0x5c]
test eax, eax
push ebp
jne 0x414b0b
xor ebp, ebp
mov dword [esp + 0x10], ebp
jmp 0x414b14
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov ebp, eax
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
push ebp
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]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x20], eax
push 0
lea eax, [esp + 0x40]
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x14]
push 0xcc0020
push edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x70]
push eax
push ebp
push esi
push edi
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [edi + edi*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
mov ebp, eax
sar ebp, 5
shl ebp, 2
test esi, esi
mov dword [esp + 0x28], ebp
jle 0x414c9c
mov edx, dword [esp + 0x64]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
add ecx, eax
test edi, edi
jle 0x414c83
mov ax, dx
mov dword [esp + 0x70], edx
shr ax, 8
shr edx, 0x10
mov dword [esp + 0x70], edx
mov dword [esp + 0x18], edi
cmp bl, 0xff
jne 0x414c1c
mov dl, byte [esp + 0x64]
mov byte [ecx], dl
mov dl, byte [esp + 0x70]
inc ecx
mov byte [ecx], al
inc ecx
mov byte [ecx], dl
jmp 0x414c73
movzx ebp, byte [ecx]
mov dl, bl
movzx esi, bl
movzx ebx, byte [esp + 0x64]
imul ebx, esi
not dl
movzx edx, dl
imul ebp, edx
add ebx, ebp
sar ebx, 8
mov byte [ecx], bl
movzx ebp, byte [ecx + 1]
inc ecx
imul ebp, edx
movzx ebx, al
imul ebx, esi
add ebx, ebp
sar ebx, 8
mov byte [ecx], bl
movzx ebx, byte [esp + 0x70]
mov ebp, dword [esp + 0x28]
imul ebx, esi
movzx esi, byte [ecx + 1]
inc ecx
imul esi, edx
add ebx, esi
mov esi, dword [esp + 0x74]
sar ebx, 8
mov byte [ecx], bl
mov bl, byte [esp + 0x78]
mov edx, dword [esp + 0x18]
inc ecx
dec edx
mov dword [esp + 0x18], edx
jne 0x414c05
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ecx, ebp
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jne 0x414be1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x6c]
push 0
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push 0
push 0
push 0
push esi
push edi
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x4c
ret