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

Disassembly:
sub esp, 0x60
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x80]
push esi
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
push eax
push 0x18
xor esi, esi
push ebp
mov dword [esp + 0x54], 0x28
mov word [esp + 0x60], 1
mov word [esp + 0x62], 0x18
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ebx, 0x20
cmp word [esp + 0x42], bx
jne 0x404fa8
mov ecx, dword [esp + 0x74]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ecx
call esi
mov edx, dword [esp + 0x80]
mov edi, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x44]
test eax, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x4c], edx
je 0x404d18
mov dword [esp + 0x14], eax
jmp 0x404d9f
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x58]
push edx
push 0
mov word [esp + 0x6e], bx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
mov dword [esp + 0x20], eax
je 0x404f6d
mov eax, dword [esp + 0x74]
push eax
call esi
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push esi
call ebp
mov ecx, dword [esp + 0x20]
push ecx
push edi
mov ebx, eax
call ebp
mov edx, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
push esi
push edx
mov ebp, eax
mov eax, dword [esp + 0x48]
push eax
push 0
push 0
push edi
mov dword [esp + 0x3c], ebp
call dword [sym.imp.GDI32.dll_BitBlt]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call ebp
push ebx
push esi
call ebp
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov word [esp + 0x56], 0x18
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x58]
push edx
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x404f6d
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x80]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x8c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x80]
push eax
push ecx
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test edx, edx
mov eax, edx
jge 0x404e1d
neg eax
cmp dword [esp + 0x10], eax
jge 0x404f3e
mov eax, dword [esp + 0x34]
test eax, eax
mov ecx, eax
mov dword [esp + 0x28], eax
jle 0x404f1d
jmp 0x404e44
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x8c]
sub eax, ecx
cmp eax, edx
jl 0x404f07
add edx, ebx
cmp eax, edx
jge 0x404f07
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x404f07
cmp eax, dword [esp + 0x84]
jge 0x404f07
mov cl, byte [ebp + 3]
or al, 0xff
sub al, cl
movzx edi, al
movzx eax, byte [ebp]
movzx ebx, cl
movzx ecx, byte [esi]
imul eax, ebx
imul ecx, edi
add ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
movzx edx, byte [esi + 1]
mov byte [esi], cl
imul edx, edi
movzx ecx, byte [ebp + 1]
imul ecx, ebx
add ecx, edx
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edx, byte [esi + 2]
mov byte [esi + 1], al
imul edx, edi
movzx ecx, byte [ebp + 2]
imul ecx, ebx
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x80]
add ecx, edx
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x28]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 2], al
add esi, 3
sub ecx, 1
add ebp, 4
test ecx, ecx
mov dword [esp + 0x28], ecx
jg 0x404e40
mov edx, dword [esp + 0x38]
lea ecx, [ebx + ebx*2]
and ecx, 0x80000003
jns 0x404f2d
dec ecx
or ecx, 0xfffffffc
inc ecx
neg ecx
and ecx, 3
add esi, ecx
add dword [esp + 0x10], 1
jmp 0x404e15
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push 0xcc0020
push 0
push 0
push edi
push edx
mov edx, dword [esp + 0x88]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x10], eax
test edi, edi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x404f86
mov eax, dword [esp + 0x18]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404f91
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404f9c
push eax
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret