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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43fb58
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453810]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x12c], edi
je 0x40b6ba
mov eax, dword [esi + 0x20]
mov ebx, dword [esi + 0x5f00]
push eax
mov dword [esi + 0x5f00], edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004185ab
mov ebp, eax
cmp ebp, edi
je 0x40b6ba
mov eax, dword [esi + 0x3fc0]
push eax
push 1
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], eax
call fcn.00418a14
mov ecx, dword [ebp + 8]
push 1
mov dword [esp + 0x64], edi
mov edi, dword [sym.imp.GDI32.dll_GetCurrentObject]
push ecx
call edi
push eax
call fcn.00418867
lea edx, [esp + 0x3c]
push edx
mov ecx, ebp
mov dword [esp + 0x38], eax
call fcn.00418966
mov eax, dword [esi + 0xa4]
push 1
push eax
call edi
push eax
call fcn.00418867
lea ecx, [esp + 0x3c]
lea edi, [esi + 0x9c]
push ecx
mov ecx, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edi
call fcn.00418966
test ebx, ebx
jle 0x40b67b
lea edi, [esi + 0x2080]
mov dword [esp + 0x28], ebx
mov ecx, dword [esi + 0x84]
mov eax, dword [edi - 0x1f40]
mov ebx, dword [esi + 0x88]
imul eax, ecx
cdq
idiv ebx
cmp dword [edi + 0x2ee0], 0
mov dword [esp + 0x1c], eax
je 0x40b622
mov eax, dword [edi]
imul eax, ecx
cdq
idiv ebx
mov dword [esp + 0x24], eax
mov eax, dword [edi - 0xfa0]
imul eax, ecx
cdq
idiv ebx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xfa0]
imul eax, ecx
cdq
idiv ebx
mov edx, dword [esi + 0x78]
add edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x74]
add eax, ebx
push eax
push ecx
mov ecx, ebp
call fcn.00418361
mov edx, dword [esi + 0x78]
add edx, dword [esp + 0x20]
mov eax, dword [esi + 0x74]
add eax, dword [esp + 0x24]
push edx
push eax
mov ecx, ebp
call fcn.00417f46
mov ecx, dword [esp + 0x18]
push ecx
push ebx
mov ebx, dword [esp + 0x34]
lea edx, [esp + 0x54]
push edx
mov ecx, ebx
call fcn.00418361
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, ebx
call fcn.00417f46
jmp 0x40b669
mov eax, dword [edi - 0xfa0]
imul eax, ecx
cdq
idiv ebx
mov ebx, dword [esp + 0x30]
mov edx, dword [ebp + 4]
push ebx
mov ecx, eax
mov eax, dword [esi + 0x78]
add eax, ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x74]
add ecx, dword [esp + 0x20]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0xa0]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetPixel]
add edi, 4
sub dword [esp + 0x28], 1
jne 0x40b56f
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push eax
mov ecx, ebp
call fcn.00418966
mov ecx, dword [ebp + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x38]
push eax
mov ecx, edi
call fcn.00418966
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x3c], vtable.CPen.0
call fcn.00409660
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret