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

Disassembly:
mov eax, 0x12b0
call fcn.1026ac60
mov eax, dword [0x1058ac14]
xor eax, esp
mov dword [esp + 0x12ac], eax
push esi
mov esi, dword [esp + 0x12b8]
push edi
mov dword [esp + 0x38], esi
mov edi, dword [esi + 0x5870]
mov eax, dword [esi + 0x5884]
mov dword [esp + 0x40], eax
test edi, edi
je 0x101d18ce
cmp edi, 3
jne 0x101d18da
mov dword [esp + 0x54], 1
test eax, eax
je 0x101d18e2
mov dword [esp + 0x54], 0
mov ecx, dword [esi]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x64], eax
cdq
sub eax, edx
sar eax, 1
add eax, 0x14
cdq
idiv dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x170]
add eax, 0x14
mov dword [esp + 0x10], eax
cmp edi, 3
jge 0x101d191d
cmp dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
je 0x101d1925
mov dword [esp + 0x3c], 1
mov eax, dword [esi + 0x2c]
imul eax, dword [esi + 0x28]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x10]
cdq
mov ecx, eax
mov dword [esp + 0x4c], eax
or ecx, edx
mov eax, dword [esi]
je 0x101d1989
movss xmm0, dword [eax + 4]
mov ecx, dword [esp + 0x4c]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [0x103efc58]
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 1
movss dword [esp + 0x80], xmm0
call fcn.1026ade0
movss xmm1, dword [esp + 0x68]
movsd qword [esp + 0x2c], xmm0
movss dword [esp + 0x74], xmm1
jmp 0x101d1a01
movss xmm3, dword [eax + 4]
xor ecx, ecx
movss xmm1, dword [eax + 0x14]
movaps xmm2, xmm3
comiss xmm1, dword [0x103ef830]
mov eax, 1
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
movss xmm0, dword [0x103efc58]
movss dword [esp + 0x68], xmm3
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x74], xmm2
jbe 0x101d19d6
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x2c], xmm0
jmp 0x101d1a01
movsd xmm1, qword [0x102ee740]
movsd qword [esp + 0x2c], xmm1
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x68], xmm3
movss dword [esp + 0x74], xmm2
push 0x1080
lea eax, [esi + 0x117c]
xorps xmm2, xmm2
push 0
push eax
movsd qword [esp + 0x14], xmm2
call fcn.1026c8e0
add esp, 0xc
cmp dword [esp + 0x54], 0
je 0x101d1a67
cmp edi, 3
mov edi, dword [esp + 0x7c]
jne 0x101d1a4b
cmp edi, 0xc8
jle 0x101d1a40
sar edi, 1
mov dword [esp + 0x7c], edi
jmp 0x101d1a6b
mov edi, 0x64
mov dword [esp + 0x7c], edi
jmp 0x101d1a6b
cmp edi, 0xc8
jle 0x101d1a5c
sar edi, 2
mov dword [esp + 0x7c], edi
jmp 0x101d1a6b
mov edi, 0x32
mov dword [esp + 0x7c], edi
jmp 0x101d1a6b
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x64]
test ecx, ecx
jle 0x101d1e6c
movsd xmm2, qword [0x103f03f0]
lea eax, [edi + edi*2]
movss xmm1, dword [esp + 0x80]
shl eax, 7
cdq
mov dword [esp + 0x1c], edx
lea edx, [esi + 0x5878]
mov dword [esp + 0x34], eax
nop dword [eax]
cvtps2pd xmm0, xmm1
mov dword [esp + 0x14], ecx
dec ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x64], ecx
movsd xmm1, qword [0x103ef9e8]
andps xmm0, xmm2
comisd xmm1, xmm0
jae 0x101d1ad2
test ecx, ecx
je 0x101d1ad2
cmp dword [edx], 0
mov dword [esp + 0x4c], 0
jne 0x101d1ada
mov dword [esp + 0x4c], 1
lea eax, [esp + 0x84]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x2c], xmm0
call fcn.101ee100
movss xmm0, dword [esp + 0x7c]
add esp, 4
movss dword [esp], xmm0
push esi
call fcn.101d15f0
mov eax, dword [esp + 0x58]
add esp, 8
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x84]
push 0
push eax
call fcn.101ee340
push dword [esp + 0x44]
lea eax, [esp + 0xf50]
push eax
lea eax, [esp + 0x94]
push eax
call fcn.101ef290
add esp, 0x14
test eax, eax
je 0x101d1b79
inc dword [esi + 0x5804]
lea eax, [esp + 0xf44]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.101d1270
mov esi, dword [esp + 0xf5c]
add esp, 8
mov edx, dword [esp + 0xf58]
mov ecx, esi
add ecx, dword [esp + 0xf5c]
mov eax, edx
adc eax, dword [esp + 0xf60]
add dword [esp + 0x70], ecx
adc dword [esp + 0x6c], eax
add dword [esp + 0x78], esi
mov eax, dword [esp + 0x48]
adc dword [esp + 0x54], edx
add eax, dword [esp + 0xf44]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
adc eax, dword [esp + 0xf48]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x101d1c00
push eax
lea eax, [esp + 0x88]
push eax
call fcn.101ee870
add esp, 8
test eax, eax
je 0x101d1e53
lea eax, [esp + 0x84]
push eax
call fcn.101ee6a0
lea eax, [esp + 0x88]
push eax
call fcn.101ee640
add esp, 8
test eax, eax
je 0x101d1c2e
mov esi, dword [esp + 0x38]
dec edi
test edi, edi
jg 0x101d1b44
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x54]
mov eax, dword [esi + 0x20]
cdq
add ecx, eax
mov dword [esp + 0x78], ecx
adc edi, edx
cmp dword [esp + 0x58], 0
je 0x101d1c9b
push esi
call fcn.101d0bb0
cdq
add dword [esp + 0x74], eax
lea eax, [esi + 0xd58]
push eax
adc dword [esp + 0x74], edx
call fcn.101d0c80
cdq
add esp, 8
add eax, dword [esp + 0x78]
adc edx, edi
add eax, dword [esp + 0x70]
adc edx, dword [esp + 0x6c]
add eax, 0x400
adc edx, 0
shrd eax, edx, 0xb
shr edx, 0xb
add eax, 0x1e
mov ecx, eax
adc edx, 0
call fcn.1026ade0
movaps xmm2, xmm0
jmp 0x101d1d02
cmp dword [esp + 0x60], 0
ja 0x101d1ca9
cmp dword [esp + 0x48], 0
jbe 0x101d1cb9
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
test edx, edx
jne 0x101d1cc3
test eax, eax
jne 0x101d1cc3
movsd xmm2, qword [0x102ec470]
jmp 0x101d1d06
mov ecx, eax
call fcn.1026ade0
mulsd xmm0, qword [0x102ec478]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x48]
movsd qword [esp + 0x24], xmm0
call fcn.1026ade0
movsd xmm1, qword [esp + 0x24]
divsd xmm1, xmm0
movaps xmm0, xmm1
call fcn.10281990
movaps xmm2, xmm0
mulsd xmm2, qword [0x102aa970]
mov ecx, dword [esp + 0x78]
mov eax, ecx
or eax, edi
je 0x101d1e53
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
test eax, eax
jle 0x101d1d44
test edi, edi
jne 0x101d1d26
cmp ecx, 0x3fc00000
jbe 0x101d1d44
mov ecx, dword [esp + 0x14]
movss xmm1, dword [esp + 0x80]
movsd xmm2, qword [0x103f03f0]
sar eax, 1
mov dword [edx], eax
jmp 0x101d1e46
cmp dword [esp + 0x4c], 0
jne 0x101d1e6c
cmp dword [esp + 0x40], 0
je 0x101d1e31
cmp dword [esp + 0x5c], 0
je 0x101d1d83
comisd xmm2, xmmword [esp + 0x2c]
movss xmm0, dword [esp + 0x80]
jbe 0x101d1d79
xorps xmm0, xmmword [0x103f0410]
mov dword [esp + 0x5c], 0
jmp 0x101d1dbc
movsd xmm0, qword [esp + 8]
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jnp 0x101d1dcb
movsd xmm1, qword [esp + 0x2c]
subsd xmm0, xmm2
subsd xmm1, xmm2
divsd xmm1, xmm0
movss xmm0, dword [esp + 0x68]
subss xmm0, dword [esp + 0x74]
cvtps2pd xmm0, xmm0
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss xmm1, dword [0x102ee748]
comiss xmm1, xmm0
jbe 0x101d1dce
jmp 0x101d1dda
xorps xmm0, xmm0
movss xmm1, dword [0x102a9dc4]
minss xmm1, xmm0
movss xmm0, dword [esp + 0x74]
movss dword [esp + 0x68], xmm0
addss xmm0, xmm1
movsd qword [esp + 8], xmm2
xorps xmm2, xmm2
movss dword [esp + 0x80], xmm1
comiss xmm2, xmm0
ja 0x101d1e0d
movss xmm2, dword [0x103efc88]
minss xmm2, xmm0
movsd xmm3, qword [0x103ef9e8]
cvtps2pd xmm0, xmm1
movss dword [esp + 0x74], xmm2
movsd xmm2, qword [0x103f03f0]
andps xmm0, xmm2
comisd xmm3, xmm0
jae 0x101d1e73
jmp 0x101d1e42
movss xmm1, dword [esp + 0x80]
movsd xmm2, qword [0x103f03f0]
mov ecx, dword [esp + 0x64]
test ecx, ecx
jle 0x101d1e6c
mov edi, dword [esp + 0x7c]
jmp 0x101d1aa0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12ac]
xor ecx, esp
call fcn.1026b168
add esp, 0x12b0
ret
cmp dword [esp + 0x40], 0
je 0x101d1e82
cmp dword [esp + 0x58], 0
je 0x101d1e82
lea edi, [esi + 0xd58]
jmp 0x101d1e97
push esi
call fcn.101d0bb0
lea edi, [esi + 0xd58]
push edi
call fcn.101d0c80
add esp, 8
push edi
call fcn.101f2190
lea eax, [esi + 0x170]
push eax
push dword [esp + 0x18]
push dword [esi + 4]
call fcn.101ba440
mov ecx, dword [esp + 0x12c4]
add esp, 0x10
pop edi
pop esi
xor ecx, esp
call fcn.1026b168
add esp, 0x12b0
ret