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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2dc
mov eax, dword [0x3c508c]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
cmp dword [ebx + 8], 0
push edi
mov edi, ecx
je 0x35abef
call fcn.0035b120
test esi, esi
je 0x35b105
mov eax, dword [ebp + 0xc]
movzx ecx, di
push 5
push ecx
push esi
mov dword [ebx + 4], esi
mov dword [ebx], edi
mov dword [ebx + 8], eax
call dword [0x39a078]
push eax
push esi
call dword [0x39a07c]
push eax
call dword [0x39a0bc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x35b105
xor ecx, ecx
mov edx, 0xffff
cmp word [eax + 2], dx
sete cl
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x35ac51
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x35ac70
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov cx, word [eax + 0xe]
mov dword [esp + 0x1c], edx
mov dx, word [eax + 0x10]
mov word [esp + 0x2a], cx
mov word [esp + 0x2c], dx
lea esi, [esp + 0x4c]
call fcn.0035aaa0
mov eax, dword [esp + 0x4c]
test eax, eax
jl 0x35ac88
cmp eax, 0x7fff
jle 0x35ac93
neg eax
and eax, 0xffff
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
fmul qword [ebp + 0x10]
push eax
push 0
push 0
fdiv qword [0x3b1b88]
push 0
push 0
push 0x86
push 0
push 0
push ecx
push edx
push 0
push 0
push 0
lea esi, [ebx + 0xc]
fst qword [esp + 0xb4]
fadd qword [0x3b1b80]
call fcn.0038c8b0
neg eax
push eax
call dword [0x39a024]
mov edi, dword [0x39a35c]
push 0
push 0
mov dword [esi], eax
mov eax, dword [ebx + 8]
push 0x31
push eax
call edi
mov ecx, dword [esi]
mov edx, dword [ebx + 8]
push 1
push ecx
push 0x30
push edx
mov dword [ebx + 0x10], eax
call edi
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x98]
push eax
push ecx
call dword [0x39a3fc]
mov dword [esp + 0xc], eax
mov eax, esi
lea edi, [esp + 0x44]
lea esi, [esp + 0xc]
call fcn.0035aa30
mov eax, dword [ebx + 8]
lea edx, [esp + 0x98]
push edx
push eax
call dword [0x39a3f8]
fild dword [esp + 0x44]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x34]
fstp qword [esp + 0x60]
push ecx
fild dword [esp + 0x4c]
push edx
fstp qword [esp + 0x80]
call dword [0x39a400]
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x88]
push eax
push ecx
call dword [0x39a350]
movsx edx, word [esp + 0x2a]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fmul qword [esp + 0x60]
fmul qword [0x3b1b78]
fld qword [0x3b1b80]
fadd st(1), st(0)
fxch st(1)
call fcn.0038c8b0
add eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
movsx eax, word [esp + 0x2c]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [esp + 0x78]
fmul qword [0x3b1b70]
faddp st(1)
call fcn.0038c8b0
add eax, dword [esp + 0x38]
mov edx, dword [ebx + 8]
mov esi, dword [0x39a3f4]
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x48], eax
call esi
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x3c]
push eax
push ecx
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esp + 0x40]
push edx
call dword [0x39a3f0]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
mov eax, dword [ebx + 8]
push ecx
push eax
call dword [0x39a3ec]
mov ecx, dword [esp + 0x10]
call fcn.0035a920
xor esi, esi
mov edi, eax
cmp dword [esp + 0x30], esi
je 0x35ae5b
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x18], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jmp 0x35ae83
movzx ecx, word [edi + 0xc]
movzx edx, word [edi + 0xe]
movzx eax, word [edi + 0x10]
mov word [esp + 0x24], cx
movzx ecx, word [edi + 8]
mov word [esp + 0x26], dx
movzx edx, word [edi + 0xa]
mov word [esp + 0x20], cx
mov word [esp + 0x22], dx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x35ae9b
add eax, 0x10
jmp 0x35ae9e
add eax, 8
movzx eax, word [eax]
cmp eax, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], esi
jle 0x35b105
cmp dword [esp + 0x10], 0
jne 0x35aec0
mov edx, dword [ebx + 8]
push 5
push edx
jmp 0x35aec3
push 2
push esi
call dword [0x39a3e8]
mov esi, eax
test esi, esi
je 0x35b105
push esi
call dword [0x39a3e4]
cmp eax, dword [esp + 0x28]
je 0x35af06
push 2
push esi
call dword [0x39a3e8]
mov esi, eax
test esi, esi
jne 0x35aed3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.0038beb5
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x35b105
movsx eax, word [esp + 0x20]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fld qword [esp + 0x60]
fmul st(1), st(0)
fld qword [0x3b1b78]
fmul st(2), st(0)
fld qword [0x3b1b80]
fadd st(3), st(0)
fxch st(3)
call fcn.0038c8b0
movsx ecx, word [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x68], eax
fild dword [esp + 0xc]
fmulp st(2)
fmulp st(1)
fadd st(1)
call fcn.0038c8b0
movsx edx, word [esp + 0x22]
mov dword [esp + 0xc], edx
mov dword [esp + 0x70], eax
fild dword [esp + 0xc]
fld qword [esp + 0x78]
fmul st(1), st(0)
fld qword [0x3b1b70]
fmul st(2), st(0)
fxch st(2)
fadd st(3)
call fcn.0038c8b0
mov dword [esp + 0x6c], eax
movsx eax, word [esp + 0x26]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmulp st(1)
fmulp st(1)
faddp st(1)
call fcn.0038c8b0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push 1
push eax
mov eax, dword [esp + 0x70]
push ecx
push edx
push eax
push esi
call dword [0x39a3ec]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xe2]
push edx
mov word [esp + 0xe4], cx
call fcn.0038c788
add esp, 0xc
push 0x104
lea eax, [esp + 0xdc]
push eax
push esi
call dword [0x39a3e0]
lea ecx, [esp + 0xd8]
push 0x3aaa3c
push ecx
call dword [0x39a204]
add esp, 8
test eax, eax
je 0x35b03b
lea edx, [esp + 0xd8]
push 0x3aaa48
push edx
call dword [0x39a204]
add esp, 8
test eax, eax
je 0x35b03b
lea eax, [esp + 0xd8]
push 0x3aaa58
push eax
call dword [0x39a204]
add esp, 8
test eax, eax
je 0x35b03b
mov ecx, dword [ebx + 0xc]
push 1
push ecx
jmp 0x35b082
mov edx, dword [esp + 0x5c]
fld qword [esp + 0x80]
mov eax, dword [esp + 0x58]
fadd qword [0x3b1b68]
mov ecx, dword [esp + 0x54]
push edx
push 0
push 0
push 0
push 0
push 0x86
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
call fcn.0038c8b0
neg eax
push eax
call dword [0x39a024]
push 1
mov dword [ebx + 0x14], eax
push eax
push 0x30
push esi
call dword [0x39a35c]
mov edx, dword [esp + 0x30]
mov eax, edi
call fcn.0035a9c0
cmp dword [esp + 0x30], 0
mov edi, eax
je 0x35b0c6
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jmp 0x35b0ee
movzx edx, word [edi + 0xc]
movzx eax, word [edi + 0xe]
movzx ecx, word [edi + 0x10]
mov word [esp + 0x24], dx
movzx edx, word [edi + 8]
mov word [esp + 0x26], ax
movzx eax, word [edi + 0xa]
mov word [esp + 0x20], dx
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
jl 0x35aeb1
mov ecx, dword [esp + 0x2e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0038beb5
mov esp, ebp
pop ebp
ret 0x10