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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
mov eax, dword [0x4ec070]
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.004a17b0
test eax, eax
jne 0x4a986d
mov eax, esi
or eax, 0
je 0x4a986d
push 0
push esi
call fcn.00411c10
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
je 0x4a986d
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.004b1740
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 0x4a9331
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 0x4a92fb
mov eax, dword [esi]
mov dword [eax + ecx*4], ecx
inc ecx
cmp ecx, edx
jl 0x4a92f1
push dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x28]
push edi
push edx
mov edx, dword [esi]
call fcn.004a9090
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 0x4a92e0
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], 0
movzx eax, byte [edi + 0x14]
mov dword [esp + 0x50], eax
test eax, eax
je 0x4a9674
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 0x4a9638
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 0x4a94bd
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 0x4a94a3
lea edx, [esp + 0xa4]
call fcn.004a86f0
mov ecx, dword [esp + 0x28]
inc esi
add esp, 4
add edi, 4
cmp esi, dword [esp + 0x20]
jl 0x4a9480
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 0x4a94ee
movss xmm0, dword [esp + eax*4 + 0xdc]
movss xmm1, dword [esp + eax*4 + 0xd8]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
jmp 0x4a9508
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 0x4a94d0
addsd xmm2, xmm3
mov eax, edx
xorps xmm3, xmm3
nop
test cl, cl
jne 0x4a953e
movss xmm0, dword [esp + eax*4 + 0xac]
movss xmm1, dword [esp + eax*4 + 0xa8]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
jmp 0x4a9558
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 0x4a9520
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.004a8790
add esp, 8
movsd qword [esp + 0x70], xmm0
lea edx, [esp + 0xa0]
mov ecx, edi
call fcn.004a8580
lea edx, [esp + 0xd0]
movsd qword [esp + 0x98], xmm0
mov ecx, edi
call fcn.004a8580
movsd xmm1, qword [esp + 0x98]
mov ecx, dword [esp + 0x34]
addsd xmm1, xmm0
movsd xmm0, qword [esp + 0x70]
cmp ecx, dword [esp + 0x48]
je 0x4a95f9
movsd xmm2, qword [esp + 0x78]
comisd xmm2, xmm0
ja 0x4a95f9
ucomisd xmm0, xmm2
lahf
test ah, 0x44
jp 0x4a9610
movsd xmm2, qword [esp + 0x80]
comisd xmm2, xmm1
jbe 0x4a9610
mov edx, ecx
movsd qword [esp + 0x78], xmm0
mov dword [esp + 0x30], edx
movsd qword [esp + 0x80], xmm1
jmp 0x4a9614
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 0x4a9410
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a964f
movsd xmm0, qword [esp + 0x90]
comisd xmm0, xmm3
jbe 0x4a9660
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 0x4a9390
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 0x4a97e8
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 0x4a97b8
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 0x4a979a
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 0x4a9780
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.004a86f0
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 0x4a96f0
cmp dword [0x4ed248], 0
je 0x4a984d
mov eax, dword [0x4ef5d0]
test eax, eax
je 0x4a9804
push eax
call dword [0x4ed298]
add esp, 4
push edi
call dword [0x4ed274]
sub dword [0x4ef610], eax
add esp, 4
dec dword [0x4ef634]
push edi
call dword [0x4ed26c]
mov eax, dword [0x4ef5d0]
add esp, 4
test eax, eax
je 0x4a9857
push eax
call dword [0x4ed2a0]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004ae965
mov esp, ebp
pop ebp
ret
push edi
call dword [0x4ed26c]
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004ae965
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10c]
mov eax, 7
pop edi
pop esi
xor ecx, esp
call fcn.004ae965
mov esp, ebp
pop ebp
ret