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

Disassembly:
push 0xffffffffffffffff
push 0x4b3000
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.004a7795
mov edi, dword [fcn.004bc638]
xor ebx, ebx
push 0x10
mov dword [esp + 0x78], ebx
call edi
mov esi, eax
mov dword [esp + 0x10], esi
call fcn.00405970
test eax, eax
jne 0x40a04b
push 0x3fdf5c28
push 0xf5c28f5c
push esi
call fcn.00406880
add esp, 0xc
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x7c]
lea eax, [esp + 0x54]
push eax
push 0x18
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.gdi32.dll_GetObjectA]
mov esi, dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push ebx
call esi
push eax
lea ecx, [esp + 0x28]
call fcn.004a784c
cmp ebp, ebx
jne 0x40a07b
xor eax, eax
jmp 0x40a07e
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x28]
push eax
push edx
call fcn.004a798d
lea ecx, [esp + 0x34]
mov dword [esp + 0x7c], eax
call fcn.004a7795
lea ecx, [esp + 0x14]
call fcn.00408ce0
mov dword [esp + 0x14], 0x4eb00c
lea ecx, [esp + 0x1c]
call fcn.00408ce0
mov dword [esp + 0x1c], 0x4bcb70
push ebx
mov byte [esp + 0x78], 3
call esi
push eax
lea ecx, [esp + 0x38]
call fcn.004a784c
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x20]
call fcn.004a82cf
push 0xf
call edi
push eax
call dword [sym.imp.gdi32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.004a82cf
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.004a798d
mov edx, dword [esp + 0x5c]
mov esi, eax
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x14]
neg eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x18]
sbb eax, eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x38]
and eax, edx
push eax
lea eax, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [fcn.004bc630]
mov edx, dword [esp + 0x38]
mov ebp, dword [sym.imp.gdi32.dll_GetPixel]
push 1
push 1
push edx
call ebp
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004a8326
test esi, esi
je 0x40a173
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x38]
push esi
push eax
call fcn.004a798d
mov eax, dword [esp + 0x58]
xor edi, edi
test eax, eax
jle 0x40a1c3
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
jle 0x40a1ba
mov ecx, dword [esp + 0x28]
push esi
push edi
push ecx
call ebp
cmp eax, ebx
je 0x40a1b1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push edx
push esi
push edi
push eax
call dword [sym.imp.gdi32.dll_SetPixel]
mov eax, dword [esp + 0x5c]
inc esi
cmp esi, eax
jl 0x40a192
mov ecx, dword [esp + 0x58]
inc edi
cmp edi, ecx
jl 0x40a18c
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x40a1ce
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.004a798d
mov esi, 0x4ea884
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 4
call fcn.004a8326
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 5
call fcn.004a8326
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], 0
call fcn.004a78ca
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], 0xffffffff
call fcn.004a78ca
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 4