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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
sub eax, edx
mov dword [esp + 0x2c], ebx
cdq
mov edi, eax
mov eax, dword [esi + 0x1c]
xor edi, edx
mov dword [esp + 0xa0], ebx
sub edi, edx
mov edx, dword [esi + 0x14]
sub eax, edx
mov dword [esp + 0xa4], ebx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xee]
shl eax, 3
push eax
call fcn.004970a0
mov ecx, dword [esi + 0xee]
add esp, 4
cmp ecx, ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x20], ebx
jle 0x409d83
fld qword [esp + 0xa0]
mov ecx, eax
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov eax, dword [esi + 0xf2]
xor edx, edx
cmp eax, ebx
jle 0x409d3c
imul eax, dword [esp + 0x20]
mov ebx, dword [esi + 0xfe]
add eax, edx
inc edx
fld qword [ebx + eax*8]
fadd qword [ecx]
fstp qword [ecx]
mov eax, dword [esi + 0xf2]
cmp edx, eax
jl 0x409d1b
xor ebx, ebx
fld qword [ecx]
fcomp qword [0x4bcfe8]
fnstsw ax
test ah, 1
je 0x409d50
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0xee]
fadd qword [ecx]
inc eax
add ecx, 8
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x409d0a
fst qword [esp + 0xa0]
fcomp qword [0x4bcfe8]
fnstsw ax
test ah, 0x40
je 0x409d93
mov eax, dword [esp + 0x84]
push eax
call fcn.00496fcb
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0xca]
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x1c]
push edx
mov edx, dword [esi + 0x14]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0xb8], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0xbc], eax
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
mov dword [esp + 0xc0], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x18]
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc4], edx
push 0xf
cdq
and edx, 7
add eax, edx
mov edx, dword [esi + 0x14]
sar eax, 3
mov dword [esp + 0x14], eax
add eax, edx
mov dword [esp + 0x74], eax
mov eax, edi
cdq
and edx, 7
add eax, edx
mov edx, dword [esi + 0x18]
sar eax, 3
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov eax, edi
sub ecx, edx
cdq
and edx, 3
mov dword [esp + 0x7c], ecx
add eax, edx
mov ecx, eax
mov eax, dword [esi + 0x20]
sar ecx, 2
sub eax, ecx
mov dword [esp + 0x80], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
push edx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, 0x66666667
push 0xf
imul dword [esp + 0x1c]
sar edx, 1
mov ecx, edx
mov eax, 0x66666667
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esi + 0x14]
add edx, ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x54], edx
lea edx, [edi*8]
sub edx, edi
lea edi, [edi + edi*2]
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
sub eax, edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
sub edx, eax
mov eax, 0x66666667
mov dword [esp + 0x5c], edx
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
sub ecx, edx
mov dword [esp + 0x60], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov edi, eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb4], edx
push 1
lea eax, [esp + 0xac]
push eax
call fcn.00409c60
lea ecx, [esp + 0x58]
push 1
push ecx
call fcn.00409c60
add esp, 0x10
xor edi, edi
lea eax, [esi + 0x24]
mov ecx, dword [esp + 0xbc]
push edi
push eax
mov eax, dword [esp + 0xc0]
sub esp, 0x10
mov edx, esp
push ebx
mov dword [edx], eax
mov eax, dword [esp + 0xdc]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xe0]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00409a70
add esp, 0x1c
mov dword [esp + 0x60], eax
lea eax, [esi + 0x4d]
mov ecx, dword [esp + 0xac]
push edi
push eax
mov eax, dword [esp + 0xb0]
sub esp, 0x10
mov edx, esp
push ebx
mov dword [edx], eax
mov eax, dword [esp + 0xcc]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xd0]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00409a70
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xee]
add esp, 0x1c
cmp eax, edi
mov dword [esp + 0x20], edi
jle 0x40a09e
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xf6]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add edx, ecx
push edx
call edi
mov ecx, dword [esi + 0xf6]
mov edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], edx
add eax, ecx
push eax
call edi
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jle 0x40a080
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xee]
inc eax
add edx, 0x14
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jl 0x40a03e
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
sub eax, ecx
mov ecx, dword [esi + 0xee]
shl eax, 1
cdq
lea ecx, [ecx + ecx*2]
mov esi, dword [esi + 0xf6]
idiv ecx
mov edx, dword [esp + 0x2c]
push 0
mov edi, 1
mov ecx, dword [esp + 0x60]
lea edx, [edx + edx*4]
lea edx, [esi + edx*4]
push edx
mov edx, dword [esp + 0x5c]
sub esp, 0x10
mov esi, esp
push ebx
mov dword [esi], edi
mov dword [esi + 4], edx
sub eax, 2
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
call fcn.00409a70
mov ecx, 0xf
mov esi, 0x4d5968
lea edi, [esp + 0xf8]
add esp, 0x1c
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x60]
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esp + 0xc], eax
lea edx, [esp + 0xdc]
xor eax, eax
push edx
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
call esi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xb8]
push 0x25
push eax
lea eax, [ecx + 0x24]
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov edx, dword [esp + 0x14]
push edx
push ebx
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xdc]
push ecx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], 0
call esi
push eax
push ebx
call edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0xa8]
push 0x25
push edx
add eax, 0x4d
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x14]
push ecx
push ebx
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0xdc]
push eax
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], 0
call esi
push eax
push ebx
call edi
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x14], eax
mov ecx, dword [ecx + 0xee]
test ecx, ecx
jle 0x40a38c
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0x4d5924
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x50]
sub eax, edi
push 1
mov dword [esp + 0x10], eax
push ebx
cdq
idiv ecx
lea ecx, [ecx + ecx*2]
mov edi, eax
mov eax, dword [esp + 0x14]
cdq
idiv ecx
mov ecx, dword [esp + 0x58]
mov edx, edi
imul edx, esi
add ecx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x9c], eax
lea eax, [esi + 1]
imul edi, eax
lea edx, [edx + ecx + 1]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x98], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
lea edx, [edi + ecx - 2]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x90]
push 0x25
push ecx
mov ecx, dword [eax + 0xf6]
add edx, ecx
push 0xffffffffffffffff
push edx
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
mov ecx, dword [ebp + 8]
sub edi, eax
mov eax, edi
mov ecx, dword [ecx + 0xee]
cdq
idiv ecx
mov edx, dword [esp + 0x50]
mov ecx, eax
imul ecx, esi
mov esi, dword [esp + 0x5c]
lea eax, [edx + ecx + 1]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x90], eax
mov eax, esi
sub eax, edx
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x54]
sar eax, 2
mov dword [esp + 0x60], eax
add edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x94], edx
mov eax, dword [eax + 0xee]
lea edx, [eax + eax*2]
mov eax, edi
mov edi, edx
cdq
idiv edi
add eax, dword [esp + 0x50]
lea ecx, [eax + ecx - 1]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x60]
sub esi, ecx
mov dword [esp + 0x9c], esi
mov edi, dword [esp + 0x10]
mov edx, dword [edi]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
mov esi, eax
mov eax, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x94]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add edx, 0x14
mov ecx, dword [ecx + 0xee]
add edi, 4
cmp esi, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
jl 0x40a203
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x14]
push edx
push ebx
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x70]
push 0
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [esp + 0x78]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xd4], edx
mov esi, ecx
sub esi, eax
add eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, 0x66666667
imul esi
sar edx, 3
sar ecx, 1
mov eax, edx
add edx, ecx
mov ecx, dword [esp + 0x7c]
shr eax, 0x1f
add eax, edx
push eax
lea eax, [ecx + edi]
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov ecx, dword [esp + 0x78]
mov eax, 0x55555556
sub ecx, edi
cmp ecx, esi
jge 0x40a412
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x40a41b
imul esi
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, 0x66666667
mov dword [esp + 0x14], edx
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x28], edx
jne 0x40a43d
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
jl 0x40aa70
mov ecx, dword [ebp + 8]
mov dword [esp + 0x20], 0
mov eax, dword [ecx + 0xee]
test eax, eax
jle 0x40aa63
fild dword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x84]
neg edi
fstp qword [esp + 0x70]
mov dword [esp + 0xc8], edi
mov dword [esp + 0x24], 0x4d5924
mov dword [esp + 0x18], edx
jmp 0x40a4a5
mov edi, dword [esp + 0xc8]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x88], eax
fld qword [edx]
fmul qword [0x4bd338]
mov dword [esp + 0x8c], ecx
fdiv qword [esp + 0xa0]
fmul qword [0x4bd330]
fadd qword [esp + 0x68]
fstp qword [esp + 0x68]
fld qword [esp + 0x88]
fcos
fmul qword [esp + 0x70]
call fcn.00496fa4
fld qword [esp + 0x88]
fsin
mov dword [esp + 0x40], eax
fmul qword [esp + 0x70]
call fcn.00496fa4
fld qword [esp + 0x68]
fcos
mov dword [esp + 0x44], eax
fmul qword [esp + 0x70]
call fcn.00496fa4
fld qword [esp + 0x68]
fsin
mov dword [esp + 0x48], eax
fmul qword [esp + 0x70]
call fcn.00496fa4
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
fld qword [eax]
fcomp qword [0x4bcfe8]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
fnstsw ax
test ah, 0x40
je 0x40a566
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
mov dword [esp + 0x1c], eax
jne 0x40a695
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
push esi
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov al, byte [eax + 0xc9]
cmp al, 5
jne 0x40a5bb
cmp dword [esp + 0x24], 0x4d5924
je 0x40a5c3
cmp al, 7
jne 0x40a652
mov eax, 0x55555556
imul dword [esp + 0x14]
fld qword [esp + 0x68]
fadd qword [esp + 0x88]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
fmul qword [0x4bd0b8]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fld st(1)
fcos
fmul st(1)
call fcn.00496fa4
fxch st(1)
fsin
mov dword [esp + 0x10], eax
fmul st(1)
call fcn.00496fa4
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
add edx, eax
push edx
mov edx, dword [esp + 0x4c]
add edx, ecx
push edx
mov edx, dword [esp + 0x4c]
add edx, eax
push edx
mov edx, dword [esp + 0x4c]
add edx, ecx
push edx
lea edx, [edi + eax]
push edx
mov edx, dword [esp + 0x4c]
add edx, ecx
push edx
mov edx, dword [esp + 0x4c]
add edx, eax
mov eax, dword [esp + 0x48]
add eax, ecx
push edx
push eax
push ebx
fstp st(0)
call dword [sym.imp.GDI32.dll_Pie]
mov edx, dword [esp + 0x2c]
push edx
jmp 0x40a8d7
cmp al, 6
jne 0x40a660
cmp dword [esp + 0x24], 0x4d5924
je 0x40a68b
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edi
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_Pie]
mov edx, dword [esp + 0x2c]
push edx
jmp 0x40a8d7
jle 0x40a8e5
cmp esi, dword [esp + 0x28]
jge 0x40a8e9
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ecx
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp + 8]
mov dword [esp + 0x2c], eax
mov al, byte [edx + 0xc9]
cmp al, 5
jne 0x40a6d9
cmp dword [esp + 0x24], 0x4d5924
je 0x40a6e1
cmp al, 7
jne 0x40a838
mov eax, 0x55555556
imul dword [esp + 0x14]
fld qword [esp + 0x68]
fadd qword [esp + 0x88]
mov eax, edx
shr eax, 0x1f
add edx, eax
fmul qword [0x4bd0b8]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fld st(1)
fcos
fmul st(1)
call fcn.00496fa4
fxch st(1)
fsin
mov edi, eax
fmul st(1)
call fcn.00496fa4
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add edx, edi
sub ecx, esi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x44]
add ecx, eax
sub edx, esi
mov dword [esp + 0x60], ecx
add edx, eax
push ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x18]
add edx, edi
push ecx
push edx
mov edx, dword [esp + 0x4c]
sub edx, esi
mov ecx, dword [esp + 0x48]
add edx, eax
mov dword [esp + 0x74], eax
push edx
mov edx, dword [esp + 0x48]
sub edx, esi
add ecx, edi
add edx, eax
mov eax, dword [esp + 0x44]
push ecx
add eax, edi
push edx
push eax
push ebx
fstp st(0)
call dword [sym.imp.GDI32.dll_Pie]
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea eax, [edx + edi]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x64]
push eax
lea eax, [ecx + edi]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x64]
push 6
sub eax, esi
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0xc]
push eax
push edx
push edi
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x14]
dec eax
push eax
lea eax, [ecx + edi]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x4c]
dec edx
add eax, edi
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0xc]
push eax
dec ecx
push ecx
push edi
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
mov edi, dword [esp + 0x3c]
jmp 0x40a8d2
cmp al, 6
jne 0x40a84a
cmp dword [esp + 0x24], 0x4d5924
je 0x40a8d2
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
sub eax, esi
sub ecx, esi
push eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x6c], ecx
push ecx
mov ecx, edi
push eax
mov eax, dword [esp + 0x44]
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x44]
sub eax, esi
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_Pie]
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x44]
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, esi
neg eax
push eax
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp esi, dword [esp + 0x28]
jne 0x40aa20
push 6
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp + 8]
mov dword [esp + 0x2c], eax
mov al, byte [edx + 0xc9]
cmp al, 5
jne 0x40a925
cmp dword [esp + 0x24], 0x4d5924
je 0x40a92d
cmp al, 7
jne 0x40a9c8
mov eax, 0x55555556
imul dword [esp + 0x14]
fld qword [esp + 0x68]
fadd qword [esp + 0x88]
mov eax, edx
shr eax, 0x1f
add edx, eax
fmul qword [0x4bd0b8]
mov dword [esp + 0x64], edx
fild dword [esp + 0x64]
fld st(1)
fcos
fmul st(1)
call fcn.00496fa4
fxch st(1)
fsin
mov dword [esp + 0x10], eax
fmul st(1)
call fcn.00496fa4
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x10]
add ecx, eax
push ecx
mov ecx, dword [esp + 0x4c]
add ecx, edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x4c]
sub ecx, edx
mov edx, dword [esp + 0x18]
add ecx, eax
push ecx
mov ecx, dword [esp + 0x4c]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x38]
sub edi, ecx
mov ecx, dword [esp + 0x48]
add edi, eax
add ecx, edx
push edi
mov edi, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x4c]
sub ecx, edi
add ecx, eax
mov eax, dword [esp + 0x48]
add eax, edx
push ecx
fstp st(0)
push eax
jmp 0x40aa06
cmp al, 6
jne 0x40a9d6
cmp dword [esp + 0x24], 0x4d5924
je 0x40aa0d
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
sub ecx, eax
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
sub ecx, eax
sub edi, eax
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x40]
push edi
push ecx
mov ecx, dword [esp + 0x4c]
sub ecx, eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_Pie]
mov eax, dword [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
add edx, 4
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 8]
inc eax
add edi, 8
mov ecx, dword [edx + 0xee]
mov dword [esp + 0x20], eax
cmp eax, ecx
mov dword [esp + 0x18], edi
jl 0x40a49e
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jle 0x40a45b
mov eax, dword [esp + 0x84]
push eax
call fcn.00496fcb
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
add esp, 4
push 0
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret