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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov ecx, dword [edi + 4]
cmp ecx, edx
jne 0x10003143
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x10003151
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
mov dword [esp + 0x10], eax
mov ecx, eax
cmp ecx, edx
mov dword [esp + 0xc], edx
jle 0x10003710
mov dword [esp + 0x14], edx
jmp 0x10003167
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea esi, [eax + 1]
cmp esi, ecx
mov dword [esp + 0x5c], esi
jne 0x10003178
xor esi, esi
lea ebx, [esi + 1]
mov eax, ebx
cmp eax, ecx
jne 0x10003183
xor eax, eax
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x14]
add edx, ecx
shl esi, 4
mov ecx, dword [edx]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 4]
mov edx, dword [edx + 0xc]
add esi, ecx
mov ecx, esi
mov dword [esp + 0x48], edx
fld qword [esp + 0x44]
mov edx, dword [ecx]
mov dword [esp + 0x60], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x68], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edi + 4]
fsub qword [esp + 0x68]
shl eax, 4
add eax, ecx
fld st(0)
fld qword [esp + 0x3c]
fsub qword [esp + 0x60]
mov edx, dword [eax]
mov dword [esp + 0x70], edx
mov ecx, dword [eax + 4]
fst qword [esp + 0x90]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
mov edx, dword [eax + 8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
faddp st(1)
mov eax, dword [eax + 0xc]
mov dword [esp + 0x7c], eax
fsqrt
fstp qword [esp + 0x28]
fstp st(0)
fstp st(0)
fld qword [esp + 0x68]
fsub qword [esp + 0x78]
fst qword [esp + 0x98]
fld st(0)
fld qword [esp + 0x60]
fsub qword [esp + 0x70]
fst qword [esp + 0x30]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x18]
fstp st(0)
fstp st(0)
fld qword [esp + 0x78]
fsub qword [esp + 0x44]
fld qword [esp + 0x70]
fsub qword [esp + 0x3c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x20]
fstp st(0)
fstp st(0)
fmul qword [esp + 0x90]
fld qword [esp + 0x30]
fmul st(2)
fsubp st(1)
fabs
fstp st(1)
fcom qword [0x3ed240]
fnstsw ax
test ah, 0x41
jne 0x100032aa
fld qword [0x3ed1e8]
fadd qword [0x3ed240]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x10003314
jmp 0x100032ac
fstp st(0)
mov eax, dword [edi + 8]
add esi, 0x10
cmp esi, eax
mov dword [esp + 0x20], eax
je 0x100032e5
lea eax, [esi - 0x10]
mov ecx, esi
mov edx, eax
add esi, 0x10
add eax, 0x10
mov ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x20]
cmp esi, ecx
jne 0x100032bd
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x5c], eax
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
dec edx
dec ecx
sub eax, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
jmp 0x100036f0
fld qword [esp + 0x20]
fmul qword [esp + 0x20]
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
fsubp st(1)
fld qword [esp + 0x18]
fmul qword [esp + 0x18]
fsubp st(1)
fld qword [esp + 0x18]
fmul qword [esp + 0x28]
fmul qword [0x3ed238]
fdivp st(1)
call 0x10030c00
fmul qword [0x3ed200]
fst qword [esp + 0x20]
fmul qword [0x3ed208]
fdiv qword [0x3ed1e0]
fld qword [ebp + 0xc]
fmul qword [0x3ed200]
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10003386
fadd qword [0x3ed1e8]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x100036f0
jmp 0x1000338a
fstp st(0)
fstp st(0)
fld qword [esp + 0x20]
fsin
fdivr qword [ebp + 0x14]
fsub qword [ebp + 0x14]
fld qword [esp + 0x20]
fptan
fstp st(0)
fmul st(1)
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fcom qword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x100033d4
fld qword [0x3ed1e8]
fadd qword [esp + 0x28]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x100036ee
fld qword [esp + 0x18]
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x100033fa
fld qword [0x3ed1e8]
fadd st(1)
fld st(2)
fcompp
fnstsw ax
test ah, 0x41
je 0x100036ec
fld st(0)
fsub st(2)
fdiv st(1)
fstp qword [esp + 0x18]
fstp st(0)
fsubr qword [esp + 0x28]
fdiv qword [esp + 0x28]
fld qword [esp + 0x60]
fsub qword [esp + 0x3c]
fmul st(1)
fadd qword [esp + 0x3c]
fstp qword [esp + 0x80]
fld qword [esp + 0x68]
fsub qword [esp + 0x44]
fmul st(1)
fadd qword [esp + 0x44]
fstp qword [esp + 0x88]
fld qword [esp + 0x30]
fmul qword [esp + 0x18]
fadd qword [esp + 0x70]
fstp qword [esp + 0x4c]
fld qword [esp + 0x98]
fmul qword [esp + 0x18]
fadd qword [esp + 0x78]
fstp qword [esp + 0x54]
fcom qword [0x3ed1f0]
fnstsw ax
test ah, 0x40
jne 0x100036ee
fld qword [0x3ed1e8]
fchs
fstp qword [esp + 0x30]
fcom qword [esp + 0x30]
fnstsw ax
test ah, 1
jne 0x10003496
fcomp qword [0x3ed1e8]
fnstsw ax
test ah, 0x41
jne 0x100036f0
jmp 0x10003498
fstp st(0)
fld qword [esp + 0x18]
fcomp qword [0x3ed1f0]
fnstsw ax
test ah, 0x40
jne 0x100036f0
fld qword [esp + 0x18]
fcomp qword [esp + 0x30]
fnstsw ax
test ah, 1
jne 0x100034d1
fld qword [esp + 0x18]
fcomp qword [0x3ed1e8]
fnstsw ax
test ah, 0x41
jne 0x100036f0
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [esi], edx
mov edx, dword [esp + 0x8c]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
sub edx, eax
shl ebx, 4
sar edx, 4
add ebx, ecx
cmp edx, 1
mov esi, ebx
jae 0x100035f3
test ecx, ecx
je 0x10003526
mov edx, eax
sub edx, ecx
sar edx, 4
cmp edx, 1
ja 0x1000352b
mov edx, 1
test ecx, ecx
jne 0x10003533
xor eax, eax
jmp 0x10003538
sub eax, ecx
sar eax, 4
add eax, edx
test eax, eax
mov dword [esp + 0x18], eax
jge 0x10003544
xor eax, eax
shl eax, 4
push eax
call 0x10030be3
mov ebx, dword [edi + 4]
add esp, 4
cmp ebx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], eax
je 0x1000357f
mov eax, dword [esp + 0xc]
push ebx
push eax
call fcn.10004150
mov edx, dword [esp + 0x14]
add ebx, 0x10
add esp, 8
add edx, 0x10
cmp ebx, esi
mov dword [esp + 0xc], edx
jne 0x1000355f
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.10004150
mov eax, dword [edi + 8]
add esp, 8
cmp esi, eax
mov dword [esp + 0x20], eax
je 0x100035bb
mov eax, dword [esp + 0xc]
lea ebx, [eax + 0x10]
push esi
push ebx
call fcn.10004150
mov eax, dword [esp + 0x28]
add esi, 0x10
add esp, 8
add ebx, 0x10
cmp esi, eax
jne 0x100035a3
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x24], eax
call 0x10030340
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
shl eax, 4
add eax, esi
add esp, 4
mov ecx, edi
mov dword [edi + 0xc], eax
call fcn.10003d90
inc eax
mov dword [edi + 4], esi
shl eax, 4
add eax, esi
mov dword [edi + 8], eax
jmp 0x100036ce
mov ecx, eax
sub ecx, esi
sar ecx, 4
cmp ecx, 1
jae 0x1000365c
lea edx, [esi + 0x10]
mov ecx, edi
push edx
push eax
push esi
call fcn.100040c0
mov eax, dword [edi + 8]
lea ecx, [esp + 0x4c]
mov edx, eax
push ecx
sub edx, esi
mov ecx, 1
sar edx, 4
sub ecx, edx
push ecx
push eax
mov ecx, edi
call fcn.10004110
mov eax, dword [edi + 8]
cmp esi, eax
je 0x100036ca
mov ecx, dword [esp + 0x4c]
mov edx, esi
add esi, 0x10
mov dword [edx], ecx
mov ecx, dword [esp + 0x50]
cmp esi, eax
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + 0xc], ecx
jne 0x10003636
jmp 0x100036ca
push eax
push eax
add eax, 0xfffffff0
mov ecx, edi
push eax
call fcn.100040c0
mov ecx, dword [edi + 8]
lea eax, [ecx - 0x10]
cmp esi, eax
je 0x1000369f
jmp 0x10003679
mov ecx, dword [esp + 0x28]
sub eax, 0x10
sub ecx, 0x10
mov edx, eax
mov dword [esp + 0x28], ecx
cmp eax, esi
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebx, dword [edx + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [edx + 8]
mov dword [ecx + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
jne 0x10003675
lea eax, [esi + 0x10]
cmp esi, eax
je 0x100036ca
mov edx, dword [esp + 0x4c]
mov ecx, esi
add esi, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x50]
cmp esi, eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x54]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 0xc], edx
jne 0x100036a6
add dword [edi + 8], 0x10
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
inc ecx
add eax, 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x100036f0
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
jl 0x10003163
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10003720
push edi
call fcn.10003b30
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret