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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
xorps xmm0, xmm0
push edi
mov edi, 1
movlpd qword [esp + 0x1c], xmm0
xor ebp, ebp
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x7c], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x3c], ebp
test esi, esi
jle 0x4ec8c6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x54]
add ecx, 0xfffffff8
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x70], eax
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 8]
mov edx, dword [eax]
mov dword [esp + 0x30], eax
mov dword [esp + 0x74], edx
test ebx, ebx
jg 0x4ec477
jl 0x4ec45c
test edx, edx
jae 0x4ec477
mov esi, edx
mov eax, ebx
neg esi
mov dword [esp + 0x88], esi
adc eax, 0
neg eax
mov dword [esp + 0x94], eax
jmp 0x4ec485
mov dword [esp + 0x88], edx
mov dword [esp + 0x94], ebx
test ebp, ebp
je 0x4ec766
mov ebp, dword [ecx]
mov esi, edx
mov eax, dword [ecx + 4]
sub esi, ebp
mov edi, ebx
sbb edi, eax
test edi, edi
jg 0x4ec4ae
jl 0x4ec4a4
test esi, esi
jae 0x4ec4ae
sub ebp, edx
sbb eax, ebx
mov dword [esp + 0x5c], eax
jmp 0x4ec4b6
mov ebp, esi
mov dword [esp + 0x5c], edi
mov eax, edi
cmp dword [esp + 0x3c], 1
mov dword [esp + 0x84], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], eax
jbe 0x4ec77f
mov eax, dword [ecx + 4]
mov edi, eax
mov esi, dword [ecx]
mov dword [esp + 0x54], eax
mov eax, dword [ecx - 8]
mov dword [esp + 0x38], eax
mov eax, dword [ecx - 4]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x4c], esi
shld edi, esi, 1
mov dword [esp + 0x24], eax
mov eax, edx
add esi, esi
sub eax, esi
mov dword [esp + 0x10], eax
mov eax, ebx
sbb eax, edi
add dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
adc eax, dword [esp + 0x24]
test eax, eax
jg 0x4ec528
jl 0x4ec51c
cmp dword [esp + 0x10], 0
jae 0x4ec528
sub esi, edx
sbb edi, ebx
sub esi, dword [ecx - 8]
sbb edi, dword [ecx - 4]
jmp 0x4ec553
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [esp + 0x5c]
push dword [esp + 0x58]
call fcn.0054fcb0
mov ecx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x30]
mov edi, edx
mov edx, dword [eax]
add esi, edx
adc edi, ebx
add esi, dword [esp + 0x38]
adc edi, dword [esp + 0x24]
cmp dword [esp + 0x3c], 2
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edi
jbe 0x4ec798
mov eax, dword [ecx - 8]
mov ebx, dword [ecx - 4]
mov ebp, dword [ecx]
mov dword [esp + 0x54], eax
mov eax, dword [ecx - 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [ecx - 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ecx - 8]
sub eax, ebp
mov dword [esp + 0x4c], ebx
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx - 4]
sbb ecx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
shld ecx, eax, 1
add eax, eax
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
adc dword [esp + 0x14], ecx
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esp + 0x18]
add eax, edx
mov edx, dword [esp + 0x30]
adc ecx, dword [edx + 4]
mov edx, dword [esp + 0x74]
test ecx, ecx
jg 0x4ec607
jl 0x4ec5de
test eax, eax
jae 0x4ec607
sub ebp, dword [esp + 0x54]
mov eax, ebp
sbb ebx, dword [esp + 0x4c]
mov ecx, ebx
shld ecx, eax, 1
add eax, eax
add ebp, eax
mov eax, dword [esp + 0x30]
adc ebx, ecx
sub ebp, edx
sbb ebx, dword [eax + 4]
add ebp, dword [esp + 0x24]
adc ebx, dword [esp + 0x18]
jmp 0x4ec60b
mov ebp, eax
mov ebx, ecx
cmp dword [esp + 0x3c], 3
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edi
jbe 0x4ec7ad
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0x10]
add ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax - 0xc]
adc ecx, dword [eax + 4]
mov dword [esp + 0x74], ecx
mov eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
shld dword [esp + 0x10], ecx, 2
mov eax, dword [esp + 0x28]
shl ecx, 2
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax - 8]
mov dword [esp + 0x9c], ecx
mov ecx, dword [eax - 4]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
shld ecx, eax, 1
add eax, eax
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
adc dword [esp + 0x14], ecx
shld dword [esp + 0x14], eax, 1
add eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0x18]
mov eax, dword [eax - 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0xa0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
sbb eax, dword [esp + 0x10]
add dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x54], ecx
adc eax, dword [edx + 4]
mov edx, dword [esp + 0x28]
add edx, ecx
adc eax, dword [esp + 0x24]
test eax, eax
jg 0x4ec71d
jl 0x4ec6e8
test edx, edx
jae 0x4ec71d
mov ecx, dword [esp + 0x9c]
push 0xffffffffffffffff
push 0xfffffffffffffffa
push dword [esp + 0x24]
push ecx
call fcn.0054fcb0
mov esi, dword [esp + 0x30]
mov ecx, esi
sub eax, dword [esi]
sbb edx, dword [ecx + 4]
sub eax, dword [esp + 0x54]
sbb edx, dword [esp + 0x24]
add eax, dword [esp + 0xa0]
adc edx, dword [esp + 0x10]
jmp 0x4ec749
push 0xffffffffffffffff
push 0xfffffffffffffffc
push dword [esp + 0x7c]
push dword [esp + 0x58]
call fcn.0054fcb0
add eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov ecx, esi
adc edx, dword [esp + 0x14]
add eax, dword [esi]
adc edx, dword [ecx + 4]
add eax, dword [esp + 0x54]
adc edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edi
jmp 0x4ec7be
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x24]
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x8c]
add esi, dword [esp + 0x88]
mov edi, dword [esp + 0x94]
adc dword [esp + 0x90], edi
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x14]
add dword [esp + 0x40], esi
mov esi, dword [esp + 0x44]
adc dword [esp + 0x60], ecx
add esi, dword [esp + 0x10]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x64]
adc esi, dword [esp + 0x18]
add dword [esp + 0x48], ebp
mov dword [esp + 0x64], esi
adc dword [esp + 0x68], ebx
add dword [esp + 0x70], eax
mov esi, dword [esp + 0x14]
adc dword [esp + 0x6c], edx
test edi, edi
jne 0x4ec82a
cmp dword [esp + 0x88], 0x7fffffff
jbe 0x4ec832
xor edi, edi
mov dword [esp + 0x7c], edi
jmp 0x4ec836
mov edi, dword [esp + 0x7c]
test ecx, ecx
jne 0x4ec842
cmp esi, 0x7fffffff
jbe 0x4ec84d
mov dword [esp + 0xa4], 0
cmp dword [esp + 0x18], 0
ja 0x4ec85e
cmp dword [esp + 0x10], 0x7fffffff
jbe 0x4ec869
mov dword [esp + 0xa8], 0
test ebx, ebx
jne 0x4ec875
cmp ebp, 0x7fffffff
jbe 0x4ec880
mov dword [esp + 0xac], 0
test edx, edx
jne 0x4ec88b
cmp eax, 0x7fffffff
jbe 0x4ec896
mov dword [esp + 0xb0], 0
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0xbc]
inc ebp
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x28], ecx
cmp ebp, esi
jl 0x4ec442
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
jmp 0x4ec914
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x70], eax
movss xmm1, dword [0x5fb4d0]
test edi, edi
je 0x4ec99c
cmp ebp, 0xffffffff
ja 0x4ec99c
jb 0x4ec92c
cmp ebx, 0xffffffff
jae 0x4ec99c
mov edx, ebp
mov dword [esp + 0x34], ebx
mov ecx, ebx
mov dword [esp + 0x2c], ebp
call fcn.0054fb40
movd xmm1, esi
cvtdq2pd xmm1, xmm1
shr esi, 0x1f
movsd qword [esp + 0x1c], xmm0
addsd xmm1, qword [esi*8 + 0x619ef0]
movsd qword [esp + 0x7c], xmm1
test ebp, ebp
jne 0x4ec96e
test ebx, ebx
jne 0x4ec96e
xorps xmm3, xmm3
cvtsd2ss xmm3, xmm3
jmp 0x4ec9cb
mulsd xmm0, qword [0x5fb4c0]
divsd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_log
movsd xmm1, qword [esp + 0x7c]
movaps xmm3, xmm0
mulsd xmm3, qword [0x5fb4c8]
movsd xmm0, qword [esp + 0x1c]
cvtsd2ss xmm3, xmm3
jmp 0x4ec9cb
mov edx, ebp
movss dword [esp + 0x1c], xmm1
mov ecx, ebx
call fcn.0054fb40
movss xmm3, dword [esp + 0x1c]
movd xmm1, esi
cvtdq2pd xmm1, xmm1
shr esi, 0x1f
addsd xmm1, qword [esi*8 + 0x619ef0]
movsd qword [esp + 0x7c], xmm1
cmp dword [esp + 0xa4], 0
xorps xmm2, xmm2
mov edi, dword [esp + 0xc0]
mov edx, dword [esp + 0x2c]
movss dword [edi], xmm3
je 0x4eca63
mov eax, dword [esp + 0x60]
cmp eax, edx
ja 0x4eca63
mov ecx, dword [esp + 0x40]
jb 0x4ec9fb
cmp ecx, dword [esp + 0x34]
jae 0x4eca63
mov dword [esp + 0x34], ecx
mov esi, 1
mov dword [esp + 0x2c], eax
test ebp, ebp
jne 0x4eca20
test ebx, ebx
jne 0x4eca20
mulsd xmm0, qword [0x5fb4c0]
movsd qword [esp + 0x1c], xmm0
jmp 0x4eca4e
mulsd xmm0, qword [0x5fb4c0]
movsd qword [esp + 0x1c], xmm0
divsd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_log
movsd xmm1, qword [esp + 0x7c]
movaps xmm2, xmm0
mulsd xmm2, qword [0x5fb4c8]
movsd xmm0, qword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
xorps xmm3, xmm3
cvtsd2ss xmm3, xmm2
movss xmm2, dword [0x5fb4d0]
jmp 0x4eca7e
mulsd xmm0, qword [0x5fb4c0]
xor esi, esi
movss xmm2, dword [0x5fb4d0]
movaps xmm3, xmm2
movsd qword [esp + 0x1c], xmm0
cmp dword [esp + 0xa8], 0
movss dword [edi + 4], xmm3
je 0x4ecae6
mov eax, dword [esp + 0x64]
cmp eax, edx
ja 0x4ecae6
mov edx, dword [esp + 0x44]
jb 0x4ecaa1
cmp edx, dword [esp + 0x34]
jae 0x4ecae6
mov dword [esp + 0x34], edx
mov esi, 2
mov dword [esp + 0x2c], eax
test ebp, ebp
jne 0x4ecac7
test ebx, ebx
jne 0x4ecac7
movss xmm2, dword [0x5fb4d0]
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm0
jmp 0x4ecae9
divsd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_log
mulsd xmm0, qword [0x5fb4c8]
movss xmm2, dword [0x5fb4d0]
cvtsd2ss xmm0, xmm0
jmp 0x4ecae9
movaps xmm0, xmm2
cmp dword [esp + 0xac], 0
movss dword [edi + 8], xmm0
je 0x4ecb5b
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x2c]
ja 0x4ecb5b
mov edx, dword [esp + 0x48]
jb 0x4ecb0e
cmp edx, dword [esp + 0x34]
jae 0x4ecb5b
mov dword [esp + 0x34], edx
mov esi, 3
mov dword [esp + 0x2c], eax
test ebp, ebp
jne 0x4ecb34
test ebx, ebx
jne 0x4ecb34
movss xmm2, dword [0x5fb4d0]
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm0
jmp 0x4ecb5e
movsd xmm0, qword [esp + 0x1c]
divsd xmm0, qword [esp + 0x7c]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_log
mulsd xmm0, qword [0x5fb4c8]
movss xmm2, dword [0x5fb4d0]
cvtsd2ss xmm0, xmm0
jmp 0x4ecb5e
movaps xmm0, xmm2
cmp dword [esp + 0xb0], 0
movss dword [edi + 0xc], xmm0
je 0x4ecbb5
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x2c]
ja 0x4ecbb5
jb 0x4ecb83
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x34]
jae 0x4ecbb5
mov esi, 4
test ebp, ebp
jne 0x4ecb95
test ebx, ebx
jne 0x4ecb95
xorps xmm0, xmm0
jmp 0x4ecbae
movsd xmm0, qword [esp + 0x1c]
divsd xmm0, qword [esp + 0x7c]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_log
mulsd xmm0, qword [0x5fb4c8]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
movss dword [edi + 0x10], xmm2
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret