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

Disassembly:
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x90], ebx
jne 0x401c97
mov eax, dword [esi + 0x88]
mov dword [esp + 0x10], ebx
cmp eax, ebx
jle 0x401b24
mov ecx, dword [esi + 0xa4]
xor eax, eax
xor edi, edi
mov dword [esp + 0x14], eax
test ecx, ecx
mov dword [esp + 0x18], 0x7f7fffff
jle 0x401a97
xor ebp, ebp
mov eax, dword [esi + 0xa0]
sub esp, 0xc
mov edx, esp
sub esp, 0xc
lea ecx, [eax + ebp + 4]
mov eax, dword [eax + ebp + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [esi + 0x84]
mov ecx, esp
lea eax, [ebx + edx + 4]
mov edx, dword [ebx + edx + 4]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, esi
call fcn.00403dc0
fcom dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x401a83
fstp dword [esp + 0x18]
mov dword [esp + 0x14], edi
jmp 0x401a85
fstp st(0)
mov eax, dword [esi + 0xa4]
inc edi
add ebp, 0x70
cmp edi, eax
jl 0x401a25
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x84]
lea edi, [eax*8]
sub edi, eax
mov eax, dword [esi + 0xa0]
shl edi, 4
lea edx, [ebx + ecx + 4]
push edx
lea ecx, [edi + eax + 4]
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.00409550
mov ecx, dword [esi + 0x84]
lea edx, [ebx + ecx + 0x3c]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov ecx, dword [esi + 0x84]
mov eax, esp
lea edx, [ebx + ecx + 0x3c]
mov ecx, dword [ebx + ecx + 0x3c]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
mov eax, dword [esi + 0xa0]
lea ecx, [edi + eax + 0x3c]
call fcn.004094f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x88]
inc eax
add ebx, 0x70
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401a09
mov eax, dword [esi + 0xa4]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
jle 0x401c97
mov ebp, 4
mov ecx, dword [esi + 0xa0]
lea ecx, [ecx + edi + 0x3c]
call fcn.00409450
fcomp dword [0x40a398]
fnstsw ax
test ah, 0x41
jne 0x401b6a
mov edx, dword [esi + 0xa0]
lea ecx, [edx + edi + 0x3c]
call fcn.00409480
fstp st(0)
mov eax, dword [esi + 0xa0]
add eax, edi
mov ecx, dword [eax + 0x20]
push ecx
lea ecx, [eax + 0x3c]
call fcn.004094c0
mov edx, dword [esi + 0xa0]
sub esp, 0xc
lea eax, [edx + edi]
mov edx, esp
lea ecx, [eax + 0x3c]
mov ebx, dword [eax + 0x3c]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
lea ecx, [eax + 0x10]
call fcn.004094f0
mov edx, dword [esi + 0xa0]
push ecx
fld dword [esi + 0xbc]
fmul qword [0x40a390]
fstp dword [esp]
lea eax, [edx + edi + 0x10]
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00409520
mov ecx, dword [eax]
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0xa0]
mov dword [edx + 8], eax
lea ecx, [ecx + edi + 4]
call fcn.004094f0
mov edx, dword [esi + 0xa0]
push 0x3f733333
lea ecx, [edx + edi + 0x10]
call fcn.004094c0
xor ecx, ecx
lea ebx, [edi + 4]
mov eax, dword [esi + 0xa0]
fld dword [eax + ebx]
fcomp qword [0x40a388]
lea edx, [eax + ebx]
fnstsw ax
test ah, 0x41
jne 0x401c3d
mov dword [edx], 0x42c80000
mov eax, dword [esi + 0xa0]
lea edx, [ecx + ebp]
fld dword [eax + edx*4]
fmul dword [0x40a380]
lea eax, [eax + edx*4]
fstp dword [eax]
mov edx, dword [esi + 0xa0]
add edx, ebx
fld dword [edx]
fcomp qword [0x40a378]
fnstsw ax
test ah, 1
je 0x401c71
mov dword [edx], 0xc2c80000
mov edx, dword [esi + 0xa0]
lea eax, [ecx + ebp]
fld dword [edx + eax*4]
fmul dword [0x40a380]
lea eax, [edx + eax*4]
fstp dword [eax]
inc ecx
add ebx, 4
cmp ecx, 3
jl 0x401c07
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xa4]
inc eax
add edi, 0x70
add ebp, 0x1c
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401b3d
mov eax, dword [esi + 0x88]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
jle 0x4020ef
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x401cd5
mov ecx, dword [esi + 0x84]
lea edx, [ecx + edi + 0x3c]
mov ecx, dword [ecx + edi + 0x3c]
mov dword [esp + 0x30], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x38], edx
cmp eax, 1
jne 0x401d0f
mov eax, dword [esi + 0x104]
mov ecx, dword [esi + 0x100]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x84]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4 + 8]
lea edx, [edi + ecx + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
jmp 0x401df0
lea ecx, [esp + 0x30]
call fcn.00409480
fstp st(0)
fld dword [esi + 0xc8]
push ecx
lea ecx, [esp + 0x34]
fadd st(0), st(0)
fstp dword [esp]
call fcn.004094c0
mov ecx, dword [esi + 0x84]
mov edx, dword [edi + ecx + 0x20]
lea ecx, [esp + 0x30]
push edx
call fcn.004094c0
lea eax, [esp + 0x3c]
push 0x3dcccccd
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x3f800000
mov dword [esp + 0x4c], 0
call fcn.00409120
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x84]
mov dword [ecx + 8], edx
lea ecx, [edi + eax + 0x10]
call fcn.004094f0
mov ecx, dword [esi + 0x84]
push 0x3f733333
lea ecx, [edi + ecx + 0x10]
call fcn.004094c0
mov edx, dword [esi + 0x84]
push ecx
fld dword [esi + 0xbc]
fmul qword [0x40a390]
fstp dword [esp]
lea eax, [edi + edx + 0x10]
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00409520
mov ecx, dword [eax]
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x84]
mov dword [edx + 8], eax
lea ecx, [edi + ecx + 4]
call fcn.004094f0
mov edx, dword [esi + 0x84]
mov ecx, dword [edi + edx + 0x64]
lea eax, [edi + edx]
cmp ecx, 1
jne 0x401e3f
lea ecx, [eax + 4]
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x28], ebx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x24]
lea ebx, [ecx + ecx*4]
lea ecx, [ecx + ebx*2]
lea ecx, [eax + ecx*8 + 4]
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 4], edx
mov eax, dword [esp + 0x2c]
mov dword [ecx + 8], eax
jmp 0x401ef4
xor ebx, ebx
mov dword [esp + 0x18], 0
test ecx, ecx
jle 0x401ef4
xor ebp, ebp
fld dword [esp + 0x18]
fsin
mov dword [esp + 0x24], 0
add eax, 4
sub esp, 0xc
mov ecx, esp
fmul dword [eax + 0x64]
fstp dword [esp + 0x34]
fld dword [esp + 0x24]
fcos
fmul dword [eax + 0x64]
fstp dword [esp + 0x38]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x30]
call fcn.004094f0
mov ecx, dword [esi + 0x84]
add ecx, edi
inc ebx
mov eax, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x24]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea edx, [ecx + eax*8]
mov ecx, dword [esp + 0x24]
lea eax, [edx + ebp + 4]
add ebp, 0xc
mov dword [eax], ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x84]
mov ecx, dword [edi + edx + 0x64]
lea eax, [edi + edx]
mov dword [esp + 0x20], ecx
cmp ebx, ecx
fild dword [esp + 0x20]
fdivr qword [0x40a370]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
jl 0x401e53
cmp dword [esi + 0x90], 1
jne 0x401f3b
mov eax, dword [esi + 0x104]
mov ecx, dword [esi + 0x100]
xor edx, edx
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*4]
cmp dword [ecx + eax*4 + 4], edx
jne 0x401f3b
mov eax, dword [esi + 0x84]
lea ecx, [edi + eax]
mov eax, dword [edi + eax + 0x2c]
mov ecx, dword [ecx + 0x24]
lea ebx, [eax + eax*4]
lea eax, [eax + ebx*2]
lea eax, [ecx + eax*8 + 0x4c]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
jmp 0x401f68
mov edx, dword [esi + 0x84]
mov ecx, dword [edi + edx + 0x2c]
lea eax, [edi + edx]
lea ebx, [ecx + ecx*4]
lea edx, [eax + 0x30]
mov eax, dword [eax + 0x24]
lea ecx, [ecx + ebx*2]
lea ecx, [eax + ecx*8 + 0x4c]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov eax, dword [esi + 0x84]
mov edx, dword [edi + eax + 0x2c]
lea eax, [edi + eax + 0x2c]
inc edx
mov dword [eax], edx
mov ecx, dword [esi + 0x84]
lea eax, [edi + ecx + 0x2c]
mov ecx, dword [edi + ecx + 0x2c]
cmp ecx, 0x190
jl 0x401f95
mov dword [eax], 0
mov edx, dword [esi + 0x84]
lea eax, [esp + 0x3c]
push 0x3ca3d70a
push eax
mov ebp, dword [edi + edx + 0x2c]
lea ecx, [esp + 0x68]
dec ebp
mov dword [esp + 0x44], 0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x3f800000
call fcn.00409120
mov ecx, 1
cmp ebp, ecx
jge 0x401fe4
mov dword [esp + 0x14], 0x18f
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0x84]
mov dword [esp + 0x20], ecx
cmp dword [eax + edi + 0x28], ecx
jle 0x4020d5
lea ecx, [eax + edi + 0x54]
mov edx, dword [eax + edi + 0x54]
mov dword [esp + 0x48], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x3c]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x50], ecx
push ecx
fld dword [eax + edi + 0x60]
fmul qword [0x40a368]
lea ecx, [esp + 0x64]
fstp dword [esp]
push edx
call fcn.00409120
mov eax, dword [esi + 0x84]
xor ebx, ebx
add eax, edi
mov dword [esp + 0x1c], ebx
cmp dword [eax + 0x64], ebx
jle 0x402090
lea ecx, [ebp + ebp*4]
lea ebp, [ebp + ecx*2]
shl ebp, 3
mov ecx, dword [esp + 0x48]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [edx + 8], ecx
mov edx, dword [eax + 0x24]
add edx, ebp
lea ecx, [edx + ebx + 4]
call fcn.004094f0
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x1c]
add eax, edi
inc ecx
add ebx, 0xc
mov dword [esp + 0x1c], ecx
cmp ecx, dword [eax + 0x64]
jl 0x40204c
mov ebp, dword [esp + 0x14]
dec ebp
cmp ebp, 1
mov dword [esp + 0x14], ebp
jge 0x4020a6
mov dword [esp + 0x14], 0x18f
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x84]
mov edx, dword [edi + ecx + 0x60]
lea ecx, [esp + 0x48]
push edx
call fcn.004094c0
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x20]
inc ecx
mov edx, dword [eax + edi + 0x28]
mov dword [esp + 0x20], ecx
cmp ecx, edx
jl 0x401ff8
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x88]
inc eax
add edi, 0x70
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401cab
cmp dword [esi + 0x90], 1
jne 0x402128
mov edx, dword [esi + 0x104]
mov ecx, dword [esi + 0x100]
inc edx
mov eax, edx
mov dword [esi + 0x104], edx
lea edx, [eax + eax*4]
mov eax, dword [ecx + 4]
cmp dword [eax + edx*4 + 4], 0xffffffff
jne 0x402128
xor eax, eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x104], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret