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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 2
mov dword [esp + 0xc], 0
jl 0x10033ced
lea edi, [esi + 2]
lea eax, [edi + edi*2]
shl eax, 2
push eax
call fcn.10003ce0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x10033ced
mov edx, eax
mov eax, dword [ebp + 0x20]
cmp eax, 4
lea ecx, [edx + edi*8]
mov dword [esp + 0x1c], ecx
jne 0x10033876
mov eax, dword [ebp + 0x24]
test esi, esi
lea ecx, [eax + 0x18]
jle 0x100338ad
mov eax, edx
sub ecx, edx
mov edi, esi
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
mov ebx, dword [ecx + eax + 4]
mov dword [eax + 4], ebx
add eax, 8
dec edi
jne 0x10033862
jmp 0x100338ad
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push 1
push 0
push esi
push 3
push eax
call fcn.100460f0
add esp, 0x1c
test eax, eax
jne 0x10033ced
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0xc]
push edx
push eax
push 0xffffffffffffffff
push edi
push 4
call fcn.10045d80
mov edx, dword [esp + 0x20]
add esp, 0x14
fld qword [edx]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
fld qword [edx + esi*8 - 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x10]
fstp qword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x18]
cmp esi, 4
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], 4
jg 0x100338e4
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x5c], eax
lea eax, [esi + 2]
sub eax, ecx
dec esi
fstp qword [esp + 0x60]
lea edx, [edx + eax*8 - 0x10]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], edx
mov edx, 1
lea ebx, [esp + 0x60]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x58], 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x38], edx
lea esi, [esp + 0x78]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
xor edi, edi
jmp 0x10033943
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + edi + 0x50]
test eax, eax
je 0x1003397a
mov eax, dword [esp + edi + 0x30]
test eax, eax
je 0x1003397a
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esi - 8], ecx
mov ecx, dword [eax + 8]
mov dword [esi - 4], edx
mov edx, dword [eax + 0xc]
mov dword [esi], ecx
mov ecx, dword [eax + 0x10]
mov dword [esi + 4], edx
mov edx, dword [eax + 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jmp 0x10033b43
lea eax, [esp + 0xa0]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [esp + edi + 0x64]
push edx
mov edx, dword [esp + edi + 0x58]
push 1
push edx
mov edx, dword [ebp + 0xc]
lea eax, [eax + eax*2]
lea eax, [edx + eax*8]
push eax
push ecx
call fcn.1004e800
add esp, 0x20
test eax, eax
jne 0x10033ced
fld qword [esp + 0xc0]
fld qword [esp + 0xb8]
fmul qword [esp + 0xb8]
fld qword [esp + 0xc8]
fxch st(2)
fmul qword [esp + 0xc0]
fxch st(2)
fmul qword [esp + 0xc8]
fxch st(2)
faddp st(1)
fxch st(1)
faddp st(1)
fsqrt
fcom qword [0x10059950]
fnstsw ax
test ah, 1
je 0x100339fd
fstp st(0)
fld qword [0x10059958]
mov eax, dword [esp + edi + 0x30]
test eax, eax
jne 0x10033abb
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xc0]
mov dword [esi - 8], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esi - 4], edx
mov edx, dword [esp + 0xc8]
mov dword [esi], eax
mov eax, dword [esp + 0xcc]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
cmp dword [esp + 0x14], 2
fstp st(0)
jle 0x10033b43
mov eax, dword [esp + edi + 0x38]
mov edx, dword [ebp + 0xc]
lea ecx, [eax + eax*2]
fld qword [edx + ecx*8 + 8]
fld qword [edx + ecx*8]
fsub qword [edx + ecx*8 - 0x18]
fxch st(1)
fsub qword [edx + ecx*8 - 0x10]
lea eax, [edx + ecx*8]
fld qword [eax + 0x10]
fsub qword [eax - 8]
fxch st(2)
fmul qword [esi - 8]
fxch st(1)
fmul qword [esi]
fxch st(2)
fmul qword [esp + 0xc8]
fxch st(2)
faddp st(1)
fxch st(1)
faddp st(1)
fcomp qword [0x10059958]
fnstsw ax
test ah, 1
je 0x10033b43
fld qword [esi - 8]
fchs
fstp qword [esi - 8]
fld qword [esi]
fchs
fstp qword [esi]
fld qword [esi + 8]
fchs
fstp qword [esi + 8]
jmp 0x10033b43
mov ecx, dword [eax]
mov edx, dword [eax + 4]
fld qword [eax + 0x10]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
fst qword [esp + 0x28]
mov dword [esi - 8], ecx
mov dword [esi - 4], edx
mov dword [esi], ebx
mov dword [esi + 4], eax
fstp qword [esi + 8]
fld qword [esi]
fld qword [esi - 8]
fst qword [esp + 0x40]
fld st(1)
fxch st(1)
fmul qword [esp + 0x40]
fld qword [esp + 0x28]
fxch st(2)
fmul st(3)
fxch st(2)
fmul qword [esp + 0x28]
fxch st(2)
faddp st(1)
fxch st(1)
faddp st(1)
fsqrt
fstp st(1)
fcom qword [0x10059950]
fnstsw ax
test ah, 1
je 0x10033b1f
fstp st(0)
fstp st(0)
fld qword [0x10059958]
jmp 0x10033b27
fxch st(1)
fdiv st(1)
fxch st(1)
fstp st(0)
fld qword [esi - 8]
fmul st(1)
mov ebx, dword [esp + 0x18]
fstp qword [esi - 8]
fld qword [esi]
fmul st(1)
fstp qword [esi]
fld qword [esi + 8]
fmul st(1)
fstp qword [esi + 8]
fstp st(0)
mov edx, dword [esp + 0x10]
add ebx, 8
dec edx
add edi, 4
add esi, 0x18
cmp edx, 0xffffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
jg 0x1003393f
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
lea ebx, [ecx + 2]
mov dword [edx], 0
mov dword [edx + 4], 1
lea esi, [ebx - 2]
cmp esi, 2
jle 0x10033b8b
lea edi, [edx + 8]
lea ecx, [esi - 2]
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [edx + esi*4], 1
mov dword [edx + ebx*4 - 4], 0
test esi, esi
jle 0x10033bb8
mov eax, dword [esp + 0xc]
mov ecx, esi
lea eax, [eax + esi*8]
mov edi, dword [eax - 8]
mov dword [eax], edi
mov edi, dword [eax - 4]
mov dword [eax + 4], edi
add eax, 0xfffffff8
dec ecx
jne 0x10033ba7
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edi, dword [ebp + 0xc]
mov dword [edx - 8], ecx
mov dword [edx - 4], eax
mov edx, dword [ebp + 0x28]
mov ecx, dword [edi]
cmp esi, 2
mov dword [edx], ecx
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [edi + 8]
mov dword [edx + 8], ecx
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [edx + 0x10], ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x70]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [edx + 0x18], ecx
mov ecx, dword [esp + 0x78]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x7c]
mov dword [edx + 0x20], ecx
mov ecx, dword [esp + 0x80]
mov dword [edx + 0x24], eax
mov eax, dword [esp + 0x84]
mov dword [edx + 0x28], ecx
mov dword [edx + 0x2c], eax
jle 0x10033c64
lea ebx, [esi - 2]
lea eax, [edi + 0x30]
lea ecx, [edx + 0x40]
mov dword [esp + 0x10], ebx
mov ebx, dword [eax - 0x18]
add eax, 0x18
mov dword [ecx - 0x10], ebx
mov ebx, dword [eax - 0x2c]
mov dword [ecx - 0xc], ebx
mov ebx, dword [eax - 0x28]
mov dword [ecx - 8], ebx
mov ebx, dword [eax - 0x24]
mov dword [ecx - 4], ebx
mov ebx, dword [eax - 0x20]
mov dword [ecx], ebx
mov ebx, dword [eax - 0x1c]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x10]
add ecx, 0x18
dec ebx
mov dword [esp + 0x10], ebx
jne 0x10033c30
mov eax, dword [ebp + 8]
lea ecx, [esi + esi*2]
fld qword [esp + 0x88]
lea esi, [eax + 2]
mov ebx, dword [esp + 0x94]
fstp qword [edx + ecx*8]
lea ecx, [esi + esi*2]
push edx
push edx
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x14]
mov dword [eax - 0x28], ecx
mov ecx, dword [esp + 0xa0]
mov dword [eax - 0x24], ebx
mov ebx, dword [esp + 0xa4]
mov dword [eax - 0x20], ecx
mov ecx, dword [ebp + 8]
mov dword [eax - 0x1c], ebx
push edx
lea ecx, [ecx + ecx*2]
lea ecx, [edi + ecx*8]
mov edi, dword [ecx - 0x18]
mov dword [eax - 0x18], edi
mov edi, dword [ecx - 0x14]
mov dword [eax - 0x14], edi
mov edi, dword [ecx - 0x10]
mov dword [eax - 0x10], edi
mov edi, dword [ecx - 0xc]
mov dword [eax - 0xc], edi
mov edi, dword [ecx - 8]
mov dword [eax - 8], edi
mov ecx, dword [ecx - 4]
mov dword [eax - 4], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x24]
push eax
push ecx
push esi
push 4
call fcn.10025d80
add esp, 0x1c
mov edx, dword [esp + 0xc]
push edx
call fcn.10003d40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret