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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5efde8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0xc8]
imul ebx, dword [esi + 0xcc]
xor edi, edi
mov ebp, 1
push ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], edi
call fcn.00412980
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x74], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], edi
call fcn.00412880
mov eax, dword [esi + 0xd0]
add eax, dword [esi + 0xc8]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0x74], 1
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], edi
call fcn.00412880
cmp dword [esi + 0xcc], edi
mov byte [esp + 0x70], 2
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
jle 0x4912c2
cmp dword [esi + 0xc8], 0
jle 0x4912ab
mov ebp, dword [esp + 0x14]
lea ebp, [ebp + ebp*2]
add ebp, ebp
add ebp, ebp
add ebp, ebp
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0xdc]
imul eax, edi
add eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
movq xmm0, qword [ecx + ebp]
add ecx, ebp
lea edx, [eax + eax*2]
lea edx, [ebx + edx*8]
movq qword [edx], xmm0
movq xmm0, qword [ecx + 8]
movq qword [edx + 8], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [edx + 0x10], xmm0
test byte [esi + 0xd8], 1
je 0x491297
mov ecx, dword [esi + 0xe8]
mov edx, dword [esp + 0x14]
fld qword [ecx + edx*8]
mov ecx, dword [esp + 0x34]
fstp qword [ecx + eax*8]
inc dword [esp + 0x14]
inc edi
add ebp, 0x18
cmp edi, dword [esi + 0xc8]
jl 0x49123e
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
inc eax
xor edi, edi
cmp eax, dword [esi + 0xcc]
mov dword [esp + 0x18], eax
jl 0x491227
xor ebp, ebp
cmp ebx, 4
jl 0x491458
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov edi, 0x18
sub edi, ecx
mov dword [esp + 0x2c], edi
lea eax, [ecx + 0x30]
mov edi, 0xffffffd0
sub edi, ecx
mov ecx, 8
sub ecx, edx
mov dword [esp + 0x30], ecx
lea ebx, [edx + 0x10]
mov ecx, 0xfffffff0
sub ecx, edx
mov edx, dword [esp + 0x20]
add edx, 0xfffffffc
shr edx, 2
inc edx
lea ebp, [edx*4]
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ebp
jmp 0x491334
mov edi, dword [esp + 0x28]
mov ecx, dword [esi + 0xdc]
movq xmm0, qword [eax - 0x30]
add edi, eax
add ecx, edi
movq qword [ecx], xmm0
movq xmm0, qword [eax - 0x28]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax - 0x20]
movq qword [ecx + 0x10], xmm0
test byte [esi + 0xd8], 1
je 0x491378
mov ecx, dword [esi + 0xe8]
fld qword [ebx - 0x10]
add ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
fstp qword [ecx + ebx]
mov ecx, dword [esi + 0xdc]
movq xmm0, qword [eax - 0x18]
lea ecx, [ecx + edi + 0x18]
movq qword [ecx], xmm0
movq xmm0, qword [eax - 0x10]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax - 8]
movq qword [ecx + 0x10], xmm0
test byte [esi + 0xd8], 1
je 0x4913b9
mov ecx, dword [esi + 0xe8]
fld qword [ebx - 8]
add ecx, dword [esp + 0x24]
fstp qword [ecx + ebx + 8]
mov ecx, dword [esi + 0xdc]
add ecx, dword [esp + 0x18]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
test byte [esi + 0xd8], 1
je 0x4913f7
mov ecx, dword [esi + 0xe8]
fld qword [ebx]
mov edi, dword [esp + 0x1c]
fstp qword [edi + ecx]
mov ecx, dword [esi + 0xdc]
add ecx, dword [esp + 0x2c]
movq xmm0, qword [eax + 0x18]
add ecx, eax
movq qword [ecx], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x28]
movq qword [ecx + 0x10], xmm0
test byte [esi + 0xd8], 1
je 0x491439
mov ecx, dword [esi + 0xe8]
fld qword [ebx + 8]
add ecx, dword [esp + 0x30]
fstp qword [ecx + ebx]
add dword [esp + 0x18], 0x60
add dword [esp + 0x1c], 0x20
add eax, 0x60
add ebx, 0x20
sub edx, 1
jne 0x491330
mov ebx, dword [esp + 0x20]
xor edi, edi
cmp ebp, ebx
jge 0x4914bc
lea ecx, [ebp + ebp*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
jmp 0x491470
mov eax, dword [esi + 0xdc]
mov edx, dword [esp + 0x40]
movq xmm0, qword [edx + ecx]
add edx, ecx
add eax, ecx
movq qword [eax], xmm0
movq xmm0, qword [edx + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [eax + 0x10], xmm0
test byte [esi + 0xd8], 1
je 0x4914b4
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0xe8]
fld qword [edx + ebp*8]
fstp qword [eax + ebp*8]
inc ebp
add ecx, 0x18
cmp ebp, ebx
jl 0x491470
mov ecx, dword [esi + 0xd0]
add ecx, dword [esi + 0xc8]
xor eax, eax
test ecx, ecx
jle 0x4914f1
mov edi, edi
mov edx, dword [esi + 0xf4]
fld qword [edx + eax*8]
mov ecx, dword [esp + 0x4c]
fstp qword [ecx + eax*8]
mov edx, dword [esi + 0xd0]
add edx, dword [esi + 0xc8]
inc eax
cmp eax, edx
jl 0x4914d0
mov eax, dword [esi + 0xd4]
add eax, dword [esi + 0xcc]
lea ebx, [esi + 0xf4]
push eax
mov ecx, ebx
call fcn.00412880
mov ecx, dword [esi + 0xd4]
add ecx, dword [esi + 0xcc]
xor eax, eax
test ecx, ecx
jle 0x49153f
lea ecx, [ecx]
mov edx, dword [esi + 0x100]
fld qword [edx + eax*8]
mov ecx, dword [ebx]
fstp qword [ecx + eax*8]
mov edx, dword [esi + 0xd4]
add edx, dword [esi + 0xcc]
inc eax
cmp eax, edx
jl 0x491520
mov eax, dword [esi + 0xd0]
add eax, dword [esi + 0xc8]
lea edi, [esi + 0x100]
push eax
mov ecx, edi
call fcn.00412880
mov ecx, dword [esi + 0xd0]
add ecx, dword [esi + 0xc8]
xor eax, eax
test ecx, ecx
jle 0x49158d
jmp 0x491570
mov ecx, dword [esp + 0x4c]
mov edx, dword [edi]
fld qword [ecx + eax*8]
fstp qword [edx + eax*8]
mov edx, dword [esi + 0xd0]
add edx, dword [esi + 0xc8]
inc eax
cmp eax, edx
jl 0x491570
mov ecx, dword [esi + 0xcc]
mov eax, dword [esi + 0xc8]
mov dword [esi + 0xc8], ecx
mov dword [esi + 0xcc], eax
mov edx, dword [esi + 0xd4]
mov eax, dword [esi + 0xd0]
mov dword [esi + 0xd0], edx
mov dword [esi + 0xd4], eax
mov edx, dword [esi + 0xd8]
mov ecx, edx
and edx, 0xfffffffb
mov eax, edx
shr eax, 4
shr ecx, 2
and al, 1
and edx, 0xffffffef
and cl, 1
mov dword [esi + 0xd8], edx
test al, al
je 0x4915eb
or edx, 4
mov dword [esi + 0xd8], edx
test cl, cl
je 0x4915f6
or dword [esi + 0xd8], 0x10
mov ecx, dword [esi + 0xd8]
mov eax, ecx
and ecx, 0xffffffdf
mov edx, ecx
shr eax, 5
shr edx, 3
and al, 1
and ecx, 0xfffffff7
and dl, 1
mov dword [esi + 0xd8], ecx
test al, al
je 0x491624
or ecx, 8
mov dword [esi + 0xd8], ecx
test dl, dl
je 0x49162f
or dword [esi + 0xd8], 8
cmp dword [esi + 0xc0], 0
je 0x491705
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
inc eax
inc edi
imul edi, eax
xor ebp, ebp
push edi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], ebp
mov dword [esp + 0x5c], ebp
call fcn.0042d310
cmp dword [esi + 0x14], ebp
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebp
jl 0x4916cd
xor edx, edx
cmp dword [esi + 0x10], edx
jl 0x4916c7
mov edi, dword [esp + 0x14]
lea edi, [edi + edi*2]
add edi, edi
add edi, edi
jmp 0x491690
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc0]
movq xmm0, qword [ecx + edi]
inc dword [esp + 0x14]
inc eax
imul eax, edx
add eax, ebp
add ecx, edi
lea eax, [eax + eax*2]
lea eax, [ebx + eax*4]
movq qword [eax], xmm0
mov ecx, dword [ecx + 8]
inc edx
mov dword [eax + 8], ecx
add edi, 0xc
cmp edx, dword [esi + 0x10]
jle 0x491690
mov edi, dword [esp + 0x30]
inc ebp
cmp ebp, dword [esi + 0x14]
jle 0x491674
test edi, edi
jle 0x4916f3
xor ecx, ecx
mov eax, dword [esi + 0xc0]
movq xmm0, qword [ecx + ebx]
add eax, ecx
movq qword [eax], xmm0
mov edx, dword [ecx + ebx + 8]
add ecx, 0xc
sub edi, 1
mov dword [eax + 8], edx
jne 0x4916d3
mov edi, dword [sym.imp.MSVCR90.dll_free]
test ebx, ebx
je 0x49170b
push ebx
call edi
add esp, 4
jmp 0x49170b
mov edi, dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
movzx edx, byte [esi + 0x19]
mov al, byte [esi + 0x18]
mov byte [esi + 0x18], dl
mov byte [esi + 0x19], al
movzx ecx, byte [esi + 0x1b]
mov al, byte [esi + 0x1a]
mov byte [esi + 0x1a], cl
mov byte [esi + 0x1b], al
movzx edx, byte [esi + 0x1e]
mov al, byte [esi + 0x1c]
mov byte [esi + 0x1c], dl
mov byte [esi + 0x1e], al
movzx ecx, byte [esi + 0x1f]
mov al, byte [esi + 0x1d]
mov byte [esi + 0x1d], cl
mov byte [esi + 0x1f], al
movsd xmm0, qword [esi + 0x20]
fld qword [esi + 0x28]
mov eax, dword [esp + 0x4c]
fstp qword [esi + 0x20]
movsd qword [esi + 0x28], xmm0
movsd xmm0, qword [esi + 0x30]
fld qword [esi + 0x40]
fstp qword [esi + 0x30]
movsd qword [esi + 0x40], xmm0
movsd xmm0, qword [esi + 0x38]
fld qword [esi + 0x48]
fstp qword [esi + 0x38]
movsd qword [esi + 0x48], xmm0
movsd xmm0, qword [esi + 0x70]
fld qword [esi + 0x78]
fstp qword [esi + 0x70]
movsd qword [esi + 0x78], xmm0
movsd xmm0, qword [esi + 0x80]
xorpd xmm0, xmmword [0x5fc740]
movsd qword [esi + 0x80], xmm0
fld qword [esi + 0x60]
movsd xmm0, qword [esi + 0x50]
fstp qword [esi + 0x50]
movsd qword [esi + 0x60], xmm0
fld qword [esi + 0x68]
movsd xmm0, qword [esi + 0x58]
fstp qword [esi + 0x58]
movsd qword [esi + 0x68], xmm0
test eax, eax
je 0x4917d1
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4917df
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4917ed
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret