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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
push esi
push edi
lea eax, [esp + 0xb0]
mov esi, ecx
xor edx, edx
mov dword [esp + 0x34], esi
push eax
mov dword [esp + 0x10], edx
call fcn.00469b50
xor edi, edi
mov dword [esp + 0x24], edi
nop dword [eax]
imul eax, edi, 0x58
movups xmm0, xmmword [eax + esi + 0x160]
movups xmm1, xmmword [eax + esi + 0x150]
movups xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [eax + esi + 0x170]
movaps xmmword [esp + 0x50], xmm1
movups xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [eax + esi + 0x180]
movups xmmword [esp + 0x80], xmm0
movups xmm0, xmmword [eax + esi + 0x190]
movups xmmword [esp + 0x90], xmm0
movq xmm0, qword [eax + esi + 0x1a0]
movd eax, xmm1
movq qword [esp + 0xa0], xmm0
test eax, eax
je 0x46d6d7
cmp dword [esp + 0x54], 0
je 0x46d6d7
push dword [esp + 0x68]
mov ecx, dword [0x552004]
lea eax, [esp + 0x3c]
push eax
call fcn.00458b40
test eax, eax
je 0x46d6d3
push dword [esp + 0x68]
mov ecx, dword [0x552004]
call fcn.00457170
cmp dword [esp + 0x6c], eax
jne 0x46d6d3
push 1
mov ecx, esi
call fcn.0046a4e0
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, dword [esp + 0x58]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], ecx
mov eax, dword [esi]
shl eax, 0x10
sub edx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x5c]
shl eax, 0x10
mov dword [esp + 0x30], edx
sub edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x84]
call fcn.0046b260
cdq
mov edi, eax
mov esi, edx
mov eax, dword [esp + 0x90]
push esi
cdq
push edi
push edx
push eax
call fcn.0044a640
shrd eax, edx, 0x10
push esi
add eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
cdq
push edi
push edx
push eax
call fcn.0044a640
mov ecx, dword [esp + 0x14]
shrd eax, edx, 0x10
mov edx, dword [esp + 0x88]
add eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
call fcn.0046b260
mov ecx, eax
mov eax, dword [esp + 0x98]
imul ecx
mov ecx, dword [esp + 0x14]
shrd eax, edx, 0x10
mov edx, dword [esp + 0x8c]
add eax, dword [esp + 0x78]
mov dword [esp + 8], eax
call fcn.0046b260
mov ecx, dword [esp + 0x7c]
movsd xmm3, qword [0x534cf0]
movaps xmm2, xmm3
movaps xmm1, xmm3
movd xmm4, eax
mov eax, dword [esp + 0x9c]
movd xmm0, ecx
add eax, ecx
cvtdq2pd xmm0, xmm0
mov ecx, dword [esp + 0x80]
cvtdq2pd xmm4, xmm4
divsd xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm4, qword [0x534ad0]
divsd xmm1, xmm0
movaps xmm0, xmm3
subsd xmm1, xmm2
mulsd xmm1, xmm4
addsd xmm1, xmm2
movaps xmm2, xmm3
divsd xmm0, xmm1
cvttsd2si edx, xmm0
movd xmm0, ecx
mov dword [esp + 0x14], edx
cvtdq2pd xmm0, xmm0
mov eax, dword [esp + 0xa0]
movaps xmm1, xmm3
add eax, ecx
cmp dword [esp + 0x24], 0
divsd xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
subsd xmm1, xmm2
mulsd xmm1, xmm4
addsd xmm1, xmm2
divsd xmm3, xmm1
cvttsd2si eax, xmm3
mov dword [esp + 0x18], eax
jne 0x46d5d5
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x40], eax
jb 0x46d59b
mov eax, dword [esp + 0xbc]
cmp dword [esp + 0x44], eax
jb 0x46d59b
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
sub edi, ecx
test di, di
jne 0x46d59f
mov esi, dword [esp + 0x30]
sub esi, edx
test si, si
jne 0x46d59f
test edi, edi
jg 0x46d59f
test esi, esi
jg 0x46d59f
mov eax, dword [esp + 0x40]
sar edi, 0x10
add eax, edi
cmp eax, dword [esp + 0xb8]
jb 0x46d59f
mov eax, dword [esp + 0x44]
sar esi, 0x10
add eax, esi
cmp eax, dword [esp + 0xbc]
mov eax, dword [esp + 8]
jb 0x46d5a3
test eax, eax
jne 0x46d5a3
cmp dword [esp + 0x14], 0x10000
jne 0x46d5a3
cmp dword [esp + 0x18], 0x10000
jne 0x46d5a3
mov ecx, dword [ebp + 8]
xor edx, edx
call fcn.00457c70
push dword [esp + 0x64]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x3c]
push 5
push eax
mov eax, dword [ebp + 0xc]
sub esi, dword [eax + 4]
sub edi, dword [eax]
push esi
mov edx, edi
call fcn.00457dd0
mov esi, dword [esp + 0x44]
mov edx, 1
mov edi, dword [esp + 0x34]
add esp, 0x10
mov dword [esp + 0xc], edx
jmp 0x46d6d7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
push 1
push dword [esp + 0xa8]
push dword [esp + 0x6c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push eax
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x54]
push ecx
mov ecx, dword [ebp + 8]
push eax
push dword [esp + 0x40]
call fcn.004676e0
jmp 0x46d6bd
mov esi, dword [esp + 0x60]
test esi, esi
je 0x46d68a
cmp esi, 1
je 0x46d68a
cmp esi, 0x20
je 0x46d68a
mov ecx, dword [ebp + 0xc]
push dword [esp + 0x48]
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
inc eax
sub edx, dword [ecx]
lea ecx, [esp + 0xcc]
push eax
inc edx
call fcn.004586d0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 1
push dword [esp + 0xb0]
push 0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push eax
push edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x5c]
push ecx
push eax
push dword [esp + 0x48]
lea ecx, [esp + 0xf8]
call fcn.004676e0
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xf8]
push 1
push dword [esp + 0x98]
push esi
call fcn.00455220
push dword [esp + 0x104]
call fcn.004259c8
mov esi, dword [esp + 0x74]
mov edx, 1
mov edi, dword [esp + 0x64]
add esp, 0x40
mov dword [esp + 0xc], edx
jmp 0x46d6d7
mov ecx, dword [esp + 0xc]
push 1
push dword [esp + 0xa8]
push dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push eax
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x54]
push ecx
mov ecx, dword [ebp + 8]
push eax
push dword [esp + 0x40]
call fcn.00467940
mov esi, dword [esp + 0x5c]
mov edx, 1
mov edi, dword [esp + 0x4c]
add esp, 0x28
mov dword [esp + 0xc], edx
jmp 0x46d6d7
mov edx, dword [esp + 0xc]
test edi, edi
jne 0x46d6f0
test edx, edx
jne 0x46d6f0
mov ecx, dword [ebp + 8]
call fcn.00457c70
mov edx, 1
mov dword [esp + 0xc], edx
inc edi
mov dword [esp + 0x24], edi
cmp edi, 8
jb 0x46d2b0
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 8