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

Disassembly:
sub esp, 0x50
mov eax, dword [0x44f050]
xor eax, esp
mov dword [esp + 0x4c], eax
cmp byte [esp + 0x64], 2
xorps xmm0, xmm0
movsd xmm1, qword [esp + 0x54]
push ebx
push ebp
sete al
comisd xmm0, xmm1
push esi
push edi
mov byte [esp + 0x13], al
jb 0x413853
mov esi, dword [esp + 0x6c]
test esi, esi
jle 0x41381d
test al, al
je 0x41381d
mov edi, dword [esp + 0x78]
cmp esi, dword [edi + 0xc]
jbe 0x4137ed
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax]
mov ecx, dword [edi + 0xc]
cmp esi, ecx
push esi
push 0x30
push dword [edi + 4]
cmovbe ecx, esi
mov dword [edi + 8], ecx
call fcn.00421110
add esp, 0xc
neg esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0041f622
add esp, 0x50
ret
mov esi, dword [esp + 0x78]
mov ecx, dword [esi + 8]
inc ecx
cmp ecx, dword [esi + 0xc]
jbe 0x413831
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov byte [ecx + eax], 0x30
inc dword [esi + 8]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0041f622
add esp, 0x50
ret
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x14], 0
jge 0x413909
test byte [esp + 0x76], 4
je 0x4138a8
cvtpd2ps xmm0, xmm1
push ecx
movss dword [esp], xmm0
call fcn.00415390
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x24]
mov esi, edx
push eax
call fcn.00416a70
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0041f622
add esp, 0x50
ret
sub esp, 8
lea eax, [esp + 0x40]
movsd qword [esp], xmm1
push eax
call fcn.00415660
movups xmm1, xmmword [eax]
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
movups xmmword [esp + 0x44], xmm1
push eax
movd eax, xmm1
push eax
push dword [esp + 0x8c]
lea eax, [esp + 0x30]
push eax
call fcn.004176c0
movups xmm0, xmmword [esp + 0x54]
add esp, 0x1c
psrldq xmm0, 8
movd eax, xmm0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0041f622
add esp, 0x50
ret
movsd qword [esp + 0x18], xmm1
mov edx, dword [esp + 0x1c]
mov ebp, edx
mov ebx, dword [esp + 0x18]
and ebp, 0xfffff
shr edx, 0x14
and edx, 0x7ff
jne 0x413931
mov edx, 1
jmp 0x41393a
add ebx, 0
adc ebp, 0x100000
mov ecx, ebp
add edx, 0xfffffbcd
and ecx, 0x100000
mov dword [esp + 0x48], edx
xor eax, eax
or eax, ecx
jne 0x41396b
shld ebp, ebx, 1
xor eax, eax
dec edx
mov ecx, ebp
add ebx, ebx
and ecx, 0x100000
or eax, ecx
je 0x413952
mov dword [esp + 0x48], edx
lea ecx, [edx - 0xb]
mov eax, 0xffffffc3
sub eax, ecx
mov ecx, 0x4d104d42
imul ecx
shld ebp, ebx, 0xb
push 0
shl ebx, 0xb
add eax, 0xffffffff
push ebx
adc edx, 0
mov dword [esp + 0x58], ebp
push 0
mov dword [esp + 0x58], ebx
lea eax, [edx + 0x15b]
cdq
and edx, 7
add eax, edx
sar eax, 3
inc eax
mov dword [esp + 0x60], eax
push dword [eax*8 + 0x43e5cc]
mov edi, dword [eax*8 + 0x43e5c8]
lea ecx, [eax*8 - 0x15c]
mov dword [esp + 0x28], ecx
call fcn.0041f8f0
push 0
push ebp
push 0
push edi
mov ebx, eax
mov dword [esp + 0x68], edx
call fcn.0041f8f0
push 0
push dword [esp + 0x50]
mov esi, eax
mov ebp, edx
push 0
push edi
call fcn.0041f8f0
xor edi, edi
add edx, esi
adc edi, edi
add edx, ebx
mov ebx, dword [esp + 0x54]
adc edi, 0
add edx, 0x80000000
adc edi, 0
xor esi, esi
push esi
push dword [esp + 0x54]
push esi
push dword [ebx*8 + 0x43e5cc]
call fcn.0041f8f0
mov ecx, dword [esp + 0x48]
add edi, eax
movsx eax, word [ebx*2 + 0x43e880]
mov ebx, dword [esp + 0x78]
adc esi, edx
add edi, ebp
mov dword [esp + 0x24], 0
adc esi, 0
add edi, dword [esp + 0x58]
mov dword [esp + 0x38], edi
adc esi, 0
add ecx, 0x35
add eax, ecx
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov eax, esi
neg eax
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x13]
mov byte [esp + 0x30], al
lea eax, [esp + 0x20]
push eax
movups xmm0, xmmword [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
push 0
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.0041cde0
add esp, 0x20
cmp eax, 2
je 0x413ab3
push dword [esp + 0x24]
mov ecx, ebx
call fcn.0041de90
mov edi, dword [esp + 0x14]
add edi, dword [esp + 0x2c]
jmp 0x413c38
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
dec eax
mov edi, dword [esp + 0x28]
sub ecx, esi
movsd xmm0, qword [esp + 0x64]
add eax, ecx
test byte [esp + 0x76], 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
je 0x413b71
cvtpd2ps xmm0, xmm0
mov dword [esp + 0x24], 0
movss dword [esp + 0x18], xmm0
xorps xmm0, xmm0
mov eax, dword [esp + 0x18]
mov ecx, eax
and ecx, 0x7fffff
shr eax, 0x17
mov dword [esp + 0x20], ecx
movlpd qword [esp + 0x28], xmm0
movzx esi, al
test ecx, ecx
jne 0x413b57
cmp esi, 1
jbe 0x413b57
mov byte [esp + 0x12], 1
sub esp, 0x10
movlpd qword [esp + 0x50], xmm0
mov eax, esp
mov dword [esp + 0x48], 0x800000
mov dword [esp + 0x4c], 0
lea ecx, [esp + 0x30]
movups xmm0, xmmword [esp + 0x48]
movups xmmword [eax], xmm0
call fcn.0041b3e0
lea eax, [esi - 0x96]
jmp 0x413be8
mov byte [esp + 0x12], 0
test al, al
jne 0x413b20
mov esi, 1
mov byte [esp + 0x12], al
lea eax, [esi - 0x96]
jmp 0x413be8
movsd qword [esp + 0x18], xmm0
xorps xmm0, xmm0
mov esi, dword [esp + 0x1c]
mov eax, esi
mov ecx, dword [esp + 0x18]
and eax, 0xfffff
shr esi, 0x14
mov dword [esp + 0x20], ecx
and esi, 0x7ff
or ecx, eax
mov dword [esp + 0x24], eax
movlpd qword [esp + 0x28], xmm0
jne 0x413c8b
cmp esi, 1
jbe 0x413c8b
mov byte [esp + 0x12], 1
sub esp, 0x10
movlpd qword [esp + 0x50], xmm0
mov eax, esp
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x100000
lea ecx, [esp + 0x30]
movups xmm0, xmmword [esp + 0x48]
movups xmmword [eax], xmm0
call fcn.0041b3e0
lea eax, [esi - 0x433]
mov dword [esp + 0x30], eax
xor eax, eax
cmp byte [esp + 0x12], al
movups xmm0, xmmword [esp + 0x20]
setne al
mov ecx, eax
or ecx, 4
cmp byte [esp + 0x13], 0
cmove ecx, eax
mov eax, 0x2ff
cmp edi, eax
cmovg edi, eax
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push ecx
sub esp, 0x18
mov eax, esp
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x58]
movq qword [eax + 0x10], xmm0
call fcn.0041c010
mov edi, dword [esp + 0x3c]
add esp, 0x28
cmp byte [esp + 0x13], 0
jne 0x413c76
test byte [esp + 0x76], 8
jne 0x413c76
mov esi, dword [ebx + 8]
test esi, esi
je 0x413c5f
mov eax, dword [ebx + 4]
dec eax
add eax, esi
cmp byte [eax], 0x30
jne 0x413c5f
dec eax
inc edi
sub esi, 1
jne 0x413c53
cmp esi, dword [ebx + 0xc]
jbe 0x413c6b
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax]
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
cmovbe ecx, esi
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041f622
add esp, 0x50
ret
mov byte [esp + 0x12], 0
test esi, esi
jne 0x413bb6
mov esi, 1
mov byte [esp + 0x12], 0
jmp 0x413be2