Function at 0x40b7a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x463cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x10], edi
mov dword [edi + 0x60], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], vtable.CPen.0
mov eax, dword [edi + 8]
mov dword [esp + 0x98], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
fld qword [eax + 0x108]
fadd qword [0x468848]
mov eax, dword [ebp + 0xc]
fsub qword [eax + 0x18]
fmul qword [eax + 0x20]
fiadd dword [eax + 0xc]
call fcn.00420cbc
mov ebx, eax
mov eax, dword [edi + 0x6c]
cmp eax, esi
mov dword [esp + 0x1c], eax
je 0x40bb2f
mov edi, dword [ebp + 8]
jmp 0x40b824
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, 1
mov dword [esp + 0x18], ecx
jne 0x40b85e
push 0x329632
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x30]
call fcn.0043ed13
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0043e38c
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
fld qword [esp + 0x34]
fsub qword [eax + 0x10]
fmul qword [eax + 0x20]
fiadd dword [eax + 8]
call fcn.00420cbc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
cmp eax, 1
mov eax, dword [esp + 0x10]
jne 0x40b9d8
mov ecx, dword [eax + 0x10]
test ecx, ecx
jle 0x40b9d8
mov dword [esp + 0x14], 0
jmp 0x40b8b5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x60]
mov edx, dword [eax + 0x64]
inc ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x14]
shl ecx, 3
neg edx
sbb edx, edx
and edx, 2
dec edx
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x18]
fild dword [esp + 0x28]
add ecx, edx
mov eax, dword [ebp + 0xc]
fmul qword [ecx]
fsubr qword [esp + 0x34]
fsub qword [eax + 0x10]
fmul qword [eax + 0x20]
fiadd dword [eax + 8]
call fcn.00420cbc
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
lea eax, [edx*8]
fld qword [ecx + eax]
fcomp qword [0x468850]
fnstsw ax
test ah, 0x41
jne 0x40b95a
push ebx
lea eax, [esp + 0x44]
push esi
push eax
mov ecx, edi
call fcn.0043e858
lea eax, [ebx + 0x1e]
mov ecx, edi
push eax
push esi
call fcn.0043e8a4
lea eax, [ebx + 0x12]
lea ecx, [esi - 3]
push eax
push ecx
mov ecx, edi
call fcn.0043e8a4
lea eax, [ebx + 0x1e]
lea edx, [esp + 0x48]
push eax
push esi
push edx
mov ecx, edi
call fcn.0043e858
lea eax, [ebx + 0x12]
push eax
lea eax, [esi + 3]
push eax
jmp 0x40b999
lea ecx, [ebx + 0x1e]
lea edx, [esp + 0x50]
push ecx
push esi
push edx
mov ecx, edi
call fcn.0043e858
push ebx
push esi
mov ecx, edi
call fcn.0043e8a4
lea eax, [ebx + 0xc]
mov ecx, edi
push eax
lea eax, [esi - 3]
push eax
call fcn.0043e8a4
push ebx
lea ecx, [esp + 0x5c]
push esi
push ecx
mov ecx, edi
call fcn.0043e858
lea eax, [ebx + 0xc]
lea edx, [esi + 3]
push eax
push edx
mov ecx, edi
call fcn.0043e8a4
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x64]
push eax
push ecx
mov ecx, edi
call fcn.0043e858
push ebx
push esi
mov ecx, edi
call fcn.0043e8a4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc eax
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x40b8b1
jmp 0x40bb13
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x40bae8
mov esi, dword [eax + 0x60]
mov ecx, dword [eax + 0x64]
inc esi
mov edx, dword [eax + 0x24]
neg ecx
sbb ecx, ecx
mov dword [eax + 0x60], esi
mov eax, dword [esp + 0x14]
and ecx, 2
dec ecx
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fmul qword [edx + eax*8]
mov eax, dword [ebp + 0xc]
fsubr qword [esp + 0x34]
fsub qword [eax + 0x10]
fmul qword [eax + 0x20]
fiadd dword [eax + 8]
call fcn.00420cbc
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x20]
fld qword [edx + eax*8]
fcomp qword [0x468850]
fnstsw ax
test ah, 0x41
jne 0x40ba85
push ebx
lea ecx, [esp + 0x6c]
push esi
push ecx
mov ecx, edi
call fcn.0043e858
lea eax, [ebx + 0x1e]
mov ecx, edi
push eax
push esi
call fcn.0043e8a4
lea eax, [ebx + 0x12]
lea edx, [esi - 3]
push eax
push edx
mov ecx, edi
call fcn.0043e8a4
lea eax, [ebx + 0x1e]
mov ecx, edi
push eax
lea eax, [esp + 0x74]
push esi
push eax
call fcn.0043e858
lea eax, [ebx + 0x12]
lea ecx, [esi + 3]
push eax
push ecx
jmp 0x40bac7
lea edx, [ebx + 0x1e]
lea eax, [esp + 0x78]
push edx
push esi
push eax
mov ecx, edi
call fcn.0043e858
push ebx
push esi
mov ecx, edi
call fcn.0043e8a4
lea eax, [ebx + 0xc]
lea ecx, [esi - 3]
push eax
push ecx
mov ecx, edi
call fcn.0043e8a4
push ebx
lea edx, [esp + 0x84]
push esi
push edx
mov ecx, edi
call fcn.0043e858
lea eax, [ebx + 0xc]
push eax
lea eax, [esi + 3]
push eax
mov ecx, edi
call fcn.0043e8a4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc eax
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0x14], eax
cmp eax, edx
mov eax, ecx
jl 0x40b9eb
cmp dword [eax + 0x1c], 1
jle 0x40bb0c
mov edx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x8c]
push edx
push eax
mov ecx, edi
call fcn.0043e858
push ebx
push esi
mov ecx, edi
call fcn.0043e8a4
cmp dword [esp + 0x18], 1
jne 0x40bb1f
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0043e38c
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40b820
mov edi, dword [esp + 0x10]
mov edi, dword [edi + 0x60]
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x98], 1
call fcn.0043ed6a
mov ecx, dword [esp + 0x90]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8