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

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ebx, dword [ebp + 0x3c]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x40]
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x5c], esi
cmp edi, esi
je 0x40a366
cmp ebx, esi
jle 0x40a366
push 0x2c
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00474b70
add esp, 0xc
push esi
push esi
lea eax, [esp + 0x68]
push eax
mov ecx, 1
mov word [esp + 0x44], cx
push esi
lea ecx, [esp + 0x3c]
push ecx
mov edx, 0x20
push esi
mov dword [esp + 0x44], 0x28
mov word [esp + 0x52], dx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x5c], eax
cmp eax, esi
jne 0x40a325
mov dword [esp + 0x60], esi
jmp 0x40a360
mov eax, ebx
shl eax, 5
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
add eax, eax
cmp edi, esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], eax
jle 0x40a35a
mov dword [esp + 0x68], edi
dec edi
imul edi, eax
add dword [esp + 0x60], edi
neg eax
mov dword [esp + 0x6c], eax
jmp 0x40a360
neg edi
mov dword [esp + 0x68], edi
cmp dword [esp + 0x74], esi
jne 0x40a381
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x58], eax
cmp eax, esi
je 0x40a38d
mov edx, dword [esp + 0x5c]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x58]
cmp eax, esi
je 0x40a38d
inc dword [esp + 0x74]
mov ecx, dword [0x4aabd4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x18
jne 0x40a3b8
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
jmp 0x40a3be
xor edi, edi
mov dword [esp + 0x1c], esi
mov edx, dword [0x4aabd4]
push edx
lea ebx, [esp + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00402b10
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x18]
push edi
push esi
push ecx
push edx
push 0
push eax
mov eax, 0x4a60c4
xor edi, edi
xor ebx, ebx
call fcn.00408b30
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
add esp, 0x1c
cmp esi, ebx
je 0x40a42f
mov ecx, dword [esp + 0x34]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40a42c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call edi
xor esi, esi
cmp dword [ebp + 0x1c], ebx
jle 0x40a45e
cmp esi, ebx
jl 0x40a522
cmp esi, dword [ebp + 0x1c]
jge 0x40a522
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [edx + esi*4]
push ebp
call fcn.00409e70
inc esi
cmp esi, dword [ebp + 0x1c]
jl 0x40a436
push ebx
mov byte [esp + 0x83], 1
mov byte [esp + 0x81], bl
mov byte [esp + 0x80], bl
mov byte [esp + 0x82], 0xff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetWindowDC]
push 2
lea ecx, [esp + 0x80]
push ecx
push 0xffffffffffffffff
mov esi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 4]
push eax
lea eax, [ebp + 0x3c]
push eax
lea ecx, [esp + 0x98]
push ecx
push esi
push edx
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
sub dword [esp + 0x74], 1
jne 0x40a4d4
mov eax, dword [esp + 0x58]
push eax
mov dword [esp + 0x5c], ebx
call edi
cmp dword [esp + 0x5c], ebx
je 0x40a518
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x40a4ed
push eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x5c], ebx
call edi
mov eax, dword [esp + 0x5c]
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x60], ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0xc
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]