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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
fld dword [0x4115d8]
fsub dword [0x4115e8]
mov eax, dword [0x4115fc]
mov ecx, dword [0x4115f8]
push ebx
push esi
push edi
push eax
fstp dword [esp + 0x34]
fld dword [0x4115e8]
fadd dword [0x4115d8]
push ecx
lea ecx, [esp + 0x70]
sub esp, 8
fstp dword [esp + 0x28]
fld dword [0x4115dc]
fsub dword [0x4115e8]
fstp dword [esp + 0x44]
fld dword [0x4115dc]
fadd dword [0x4115e8]
fstp dword [esp + 0x24]
fld qword [0x4115f0]
fchs
fstp qword [esp]
call fcn.00401010
lea ecx, [esp + 0x20]
call fcn.00401000
lea ecx, [esp + 0x38]
call fcn.00401000
lea ecx, [esp + 0x58]
call fcn.00401000
fld dword [esp + 0x14]
fsub dword [esp + 0x34]
mov dword [esp + 0x1c], 0
fstp dword [esp + 0x48]
fld dword [esp + 0x18]
fsub dword [esp + 0x30]
fstp dword [esp + 0x4c]
fild dword [esp + 0x1c]
mov dword [esp + 0x18], 0
fmul dword [esp + 0x4c]
fmul dword [0x40e028]
fadd dword [esp + 0x30]
fstp qword [esp + 0x50]
fild dword [esp + 0x18]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
sub esp, 8
lea ecx, [esp + 0x90]
fmul dword [esp + 0x50]
fmul dword [0x40e028]
fadd dword [esp + 0x3c]
fstp qword [esp]
push edx
push eax
call fcn.00401010
mov ecx, dword [eax]
xor ebx, ebx
mov dword [esp + 0x38], ecx
mov byte [esp + 0x13], 0
mov edi, dword [eax + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3c], edi
mov esi, dword [eax + 8]
mov dword [esp + 0x40], esi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
jmp 0x4017ce
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x401904
mov edx, dword [esp + 0x68]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x90]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x94]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x40]
mov edx, esp
sub esp, 0x10
mov dword [edx], ecx
mov dword [edx + 4], edi
mov dword [edx + 8], esi
mov dword [edx + 0xc], eax
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 4], edi
mov dword [edx + 8], esi
mov dword [edx + 0xc], eax
lea eax, [esp + 0xd8]
push eax
call fcn.004010f0
mov edx, dword [eax]
add esp, 0x14
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xb8]
push ecx
call fcn.00401050
mov edx, eax
add esp, 0x14
mov ecx, dword [edx]
mov dword [esp + 0x30], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x38], ecx
mov ecx, esp
mov edx, dword [edx + 0xc]
sub esp, 0x10
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x58]
mov dword [ecx], edx
mov edx, dword [esp + 0x5c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x64]
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xd8]
push ecx
call fcn.004010a0
mov edx, dword [eax]
add esp, 0x24
mov dword [esp + 0x58], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov edx, dword [eax + 8]
mov dword [esp + 0x60], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x64], eax
call fcn.00401030
fcomp qword [0x40e020]
fnstsw ax
test ah, 0x41
jne 0x4018fa
mov byte [esp + 0x13], 1
inc ebx
cmp ebx, 0x64
jl 0x4017c2
mov ecx, dword [0x41160c]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x14], ebx
jne 0x401996
cmp dword [0x411610], eax
jne 0x401996
fild dword [esp + 0x14]
fld st(0)
fmul qword [0x4115b0]
fmul qword [0x40e018]
fsin
fmul qword [0x40e010]
call fcn.004030bc
fmul qword [0x4115d0]
xor edx, edx
or cl, 0xff
shl bl, 1
fmul qword [0x40e018]
mov dl, al
sub cl, bl
mov dh, cl
fsin
shl edx, 8
mov dword [esp + 0x14], edx
fmul qword [0x40e008]
call fcn.004030bc
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
and eax, 0xff
or edx, eax
lea eax, [esi + 0xa]
push edx
mov edx, dword [ebp + 8]
add ecx, 0xa
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetPixel]
jmp 0x401a43
fild dword [esp + 0x14]
fld st(0)
fmul qword [0x4115b0]
fmul qword [0x40e018]
fsin
fmul qword [0x40e010]
call fcn.004030bc
fmul qword [0x4115d0]
xor edx, edx
mov dl, al
or al, 0xff
fmul qword [0x40e018]
shl bl, 1
sub al, bl
fsin
mov dh, al
shl edx, 8
mov dword [esp + 0x14], edx
fmul qword [0x40e008]
call fcn.004030bc
mov ecx, dword [esp + 0x14]
and eax, 0xff
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, eax
add ecx, 0xa
lea eax, [edx + 0xa]
mov edx, dword [0x41160c]
mov dword [esp + 0x78], eax
add edx, eax
mov eax, dword [0x411610]
mov dword [esp + 0x7c], ecx
add eax, ecx
mov dword [esp + 0x80], edx
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x78]
push esi
push ecx
push edx
mov dword [esp + 0x90], eax
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x18]
add esi, dword [0x411610]
cmp esi, 0x258
mov dword [esp + 0x18], esi
jl 0x40175c
mov eax, dword [esp + 0x1c]
mov edx, dword [0x41160c]
add eax, edx
cmp eax, 0x258
mov dword [esp + 0x1c], eax
jl 0x40173e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret