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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
mov eax, dword [0x4f3070]
xor eax, esp
mov dword [esp + 0x104], eax
mov dword [esp + 0x1c], edx
mov eax, ecx
mov ecx, dword [ebp + 8]
xorps xmm3, xmm3
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 0x10]
push esi
movzx esi, byte [eax + 0x14]
mov dword [esp + 0x64], edx
inc esi
mov edx, dword [ebp + 0x14]
push edi
mov dword [esp + 0x58], edx
lea edi, [ecx*4 + 4]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], 0
movsd qword [esp + 0x90], xmm3
imul esi, edi
call fcn.004a6f70
test eax, eax
jne 0x4af02d
mov eax, esi
or eax, 0
je 0x4af02d
push 0
push esi
call fcn.004173d0
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
je 0x4af02d
mov ecx, dword [esp + 0xc]
push esi
push 0
push edx
movzx eax, byte [ecx + 0x14]
imul eax, edi
add eax, edx
mov dword [esp + 0x20], eax
call fcn.004b6f30
mov eax, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x18]
xor edi, edi
movzx eax, byte [eax + 0x14]
test eax, eax
je 0x4aeaf1
mov esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x20], ecx
nop
add eax, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov dword [esi], eax
test edx, edx
jle 0x4aeabb
mov eax, dword [esi]
mov dword [eax + ecx*4], ecx
inc ecx
cmp ecx, edx
jl 0x4aeab1
push dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x28]
push edi
push edx
mov edx, dword [esi]
call fcn.004ae850
mov eax, dword [esp + 0x1c]
inc edi
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov edx, dword [esp + 0x18]
add esi, 4
add ecx, edx
movzx eax, byte [eax + 0x14]
mov dword [esp + 0x20], ecx
cmp edi, eax
jl 0x4aeaa0
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], 0
movzx eax, byte [edi + 0x14]
mov dword [esp + 0x50], eax
test eax, eax
je 0x4aee34
mov eax, dword [edi + 0x10]
lea esi, [edx - 1]
movzx ecx, byte [edi + 0x17]
add eax, 0xfffffffc
mov dword [esp + 0x64], eax
cdq
idiv ecx
mov dword [esp + 0x5c], ecx
mov ecx, eax
mov dword [esp + 0x20], esi
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x18]
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x28], eax
nop
mov eax, dword [esp + 0x60]
xorps xmm0, xmm0
xor edx, edx
movsd qword [esp + 0x78], xmm0
movsd qword [esp + 0x80], xmm0
xorps xmm3, xmm3
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
cmp eax, ecx
jg 0x4aedf8
mov al, byte [edi + 0x16]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov eax, dword [edx]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [esp + 0x40], eax
mov eax, dword [edx + esi*4]
lea esi, [eax + eax*2]
movzx eax, byte [edi + 0x15]
add eax, 0xfffffffe
shl esi, 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x64]
cdq
idiv dword [esp + 0x5c]
mov dword [esp + 0x4c], esi
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x48], eax
nop dword [eax]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
movups xmm0, xmmword [eax + ecx]
movups xmmword [esp + 0xd0], xmm0
movups xmm0, xmmword [eax + ecx + 0x10]
movups xmmword [esp + 0xe0], xmm0
movups xmm0, xmmword [eax + ecx + 0x20]
movups xmmword [esp + 0xf0], xmm0
movups xmm0, xmmword [esi + ecx]
movups xmmword [esp + 0xa0], xmm0
movups xmm0, xmmword [esi + ecx + 0x10]
movups xmmword [esp + 0xb0], xmm0
movups xmm0, xmmword [esi + ecx + 0x20]
mov esi, 1
movups xmmword [esp + 0xc0], xmm0
cmp dword [esp + 0x20], esi
jle 0x4aec7d
mov edx, dword [esp + 0x28]
mov edi, dword [edx]
add edi, 4
nop dword [eax + eax]
mov eax, dword [edi]
lea edx, [esp + 0xd0]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0xc]
push eax
cmp esi, dword [esp + 0x38]
jl 0x4aec63
lea edx, [esp + 0xa4]
call fcn.004adeb0
mov ecx, dword [esp + 0x28]
inc esi
add esp, 4
add edi, 4
cmp esi, dword [esp + 0x20]
jl 0x4aec40
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x44]
xorps xmm2, xmm2
mov cl, byte [esp + 0x13]
mov eax, edx
nop word [eax + eax]
test cl, cl
jne 0x4aecae
movss xmm0, dword [esp + eax*4 + 0xdc]
movss xmm1, dword [esp + eax*4 + 0xd8]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
jmp 0x4aecc8
movd xmm0, dword [esp + eax*4 + 0xdc]
movd xmm1, dword [esp + eax*4 + 0xd8]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
sub eax, 2
subsd xmm0, xmm1
addsd xmm2, xmm0
jns 0x4aec90
addsd xmm2, xmm3
mov eax, edx
xorps xmm3, xmm3
nop
test cl, cl
jne 0x4aecfe
movss xmm0, dword [esp + eax*4 + 0xac]
movss xmm1, dword [esp + eax*4 + 0xa8]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
jmp 0x4aed18
movd xmm0, dword [esp + eax*4 + 0xac]
movd xmm1, dword [esp + eax*4 + 0xa8]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
sub eax, 2
subsd xmm0, xmm1
addsd xmm3, xmm0
jns 0x4aece0
addsd xmm3, xmm2
push ecx
lea eax, [esp + 0xa4]
mov ecx, edi
push eax
lea edx, [esp + 0xd8]
movsd qword [esp + 0x90], xmm3
call fcn.004adf50
add esp, 8
movsd qword [esp + 0x70], xmm0
lea edx, [esp + 0xa0]
mov ecx, edi
call fcn.004add40
lea edx, [esp + 0xd0]
movsd qword [esp + 0x98], xmm0
mov ecx, edi
call fcn.004add40
movsd xmm1, qword [esp + 0x98]
mov ecx, dword [esp + 0x34]
addsd xmm1, xmm0
movsd xmm0, qword [esp + 0x70]
cmp ecx, dword [esp + 0x48]
je 0x4aedb9
movsd xmm2, qword [esp + 0x78]
comisd xmm2, xmm0
ja 0x4aedb9
ucomisd xmm0, xmm2
lahf
test ah, 0x44
jp 0x4aedd0
movsd xmm2, qword [esp + 0x80]
comisd xmm2, xmm1
jbe 0x4aedd0
mov edx, ecx
movsd qword [esp + 0x78], xmm0
mov dword [esp + 0x30], edx
movsd qword [esp + 0x80], xmm1
jmp 0x4aedd4
mov edx, dword [esp + 0x30]
movsd xmm3, qword [esp + 0x88]
inc ecx
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x34], ecx
cmp ecx, dword [esp + 0x54]
jle 0x4aebd0
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4aee0f
movsd xmm0, qword [esp + 0x90]
comisd xmm0, xmm3
jbe 0x4aee20
mov dword [esp + 0x38], eax
movsd qword [esp + 0x90], xmm3
mov dword [esp + 0x2c], edx
add dword [esp + 0x28], 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x50]
jl 0x4aeb50
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x58]
mov eax, dword [edi + ecx*4]
mov eax, dword [eax]
lea eax, [eax + eax*2]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
movups xmmword [edx], xmm0
movups xmm0, xmmword [esi + eax*8 + 0x10]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [esi + eax*8 + 0x20]
movups xmmword [edx + 0x20], xmm0
mov eax, dword [edi + ecx*4]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x3c]
lea eax, [eax + eax*2]
add eax, eax
movups xmm0, xmmword [esi + eax*8]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [esi + eax*8 + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [esi + eax*8 + 0x20]
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x14], ecx
movups xmmword [eax + 0x20], xmm0
cmp dword [esp + 0x18], ecx
jle 0x4aefa8
nop word [eax + eax]
cmp ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x68]
cmovl eax, dword [esp + 0x58]
cmovl edx, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], edx
mov eax, dword [edi + eax*4]
mov eax, dword [eax + ecx*4]
lea edi, [eax + eax*2]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x50], eax
shl edi, 4
add edi, esi
movzx esi, byte [eax + 3]
movzx eax, byte [eax + 2]
shl eax, 8
add esi, eax
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], esi
movzx ecx, byte [eax + 0x17]
mov eax, dword [eax + 0x10]
sub eax, 4
cdq
idiv ecx
cmp esi, eax
jge 0x4aef78
mov edx, dword [esp + 0x50]
mov eax, dword [edi + 4]
imul ecx, esi
xor esi, esi
add edx, ecx
mov ecx, dword [edi]
bswap eax
bswap ecx
mov dword [edx + 4], eax
mov eax, dword [esp + 0xc]
mov dword [edx + 8], ecx
add edx, 0xc
cmp byte [eax + 0x15], 0
jbe 0x4aef5a
lea ecx, [edi + 8]
mov edi, eax
nop dword [eax]
mov eax, dword [ecx]
lea edx, [edx + 4]
bswap eax
mov dword [edx - 4], eax
lea ecx, [ecx + 4]
movzx eax, byte [edi + 0x15]
inc esi
cmp esi, eax
jl 0x4aef40
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
inc edx
mov eax, edx
mov ecx, dword [esi + 0x18]
sar eax, 8
mov byte [ecx + 2], al
mov byte [ecx + 3], dl
mov dword [esi + 0x14], 1
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0xc]
push edi
call fcn.004adeb0
mov ecx, dword [esp + 0x18]
add esp, 4
mov esi, dword [esp + 0x24]
inc ecx
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x18]
jl 0x4aeeb0
cmp dword [0x4f4248], 0
je 0x4af00d
mov eax, dword [0x4f65d0]
test eax, eax
je 0x4aefc4
push eax
call dword [0x4f4298]
add esp, 4
push edi
call dword [0x4f4274]
sub dword [0x4f6610], eax
add esp, 4
dec dword [0x4f6634]
push edi
call dword [0x4f426c]
mov eax, dword [0x4f65d0]
add esp, 4
test eax, eax
je 0x4af017
push eax
call dword [0x4f42a0]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret
push edi
call dword [0x4f426c]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10c]
mov eax, 7
pop edi
pop esi
xor ecx, esp
call fcn.004b4119
mov esp, ebp
pop ebp
ret