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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x118
mov eax, dword [0x519134]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 8
push eax
lea eax, [esp + 0x100]
mov dword [esp + 0x24], esi
push 0x21
push eax
call fcn.004b05e0
movzx edx, byte [esp + 0x108]
mov ecx, 0xff
and edx, 0x7f
add edx, edx
mov eax, edx
sub ecx, edx
shr eax, 7
dec eax
mov edi, eax
and eax, edx
not edi
and ecx, edi
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
push eax
lea eax, [esp + 0x94]
push 0x4df000
push eax
call fcn.004ae5e0
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.004511b0
and edi, 1
lea eax, [esp + 0xfc]
dec edi
shr edi, 0x1f
dec edi
push edi
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.004af510
movups xmm0, xmmword [0x4de000]
movaps xmm3, xmmword [esp + 0xb0]
movaps xmm4, xmmword [esp + 0xe0]
movaps xmm2, xmmword [esp + 0xc0]
movaps xmm1, xmmword [esp + 0xd0]
movups xmmword [esp + 0x90], xmm0
movups xmm0, xmmword [0x4de010]
movaps xmmword [esp + 0x80], xmm4
orps xmm4, xmm2
movaps xmmword [esp + 0x50], xmm3
orps xmm3, xmm1
movups xmmword [esp + 0xa0], xmm0
orps xmm4, xmm3
movaps xmmword [esp + 0x60], xmm2
movaps xmm0, xmm4
movaps xmmword [esp + 0x70], xmm1
psrldq xmm0, 8
orps xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 4
orps xmm4, xmm0
movd ecx, xmm4
lea eax, [ecx - 1]
not ecx
shr eax, 0x1f
shr ecx, 0x1f
and eax, ecx
neg eax
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.004af510
add esp, 0x3c
mov dword [esp + 0x14], 0x4e0000
mov esi, 6
mov dword [esp + 0x18], 0x24
nop dword [eax]
mov eax, esi
mov ecx, esi
shr eax, 3
and ecx, 7
add esi, 7
movzx edx, byte [esp + eax + 0xf9]
movzx eax, byte [esp + eax + 0xf8]
shl edx, 8
or edx, eax
shr edx, cl
mov ecx, 0xff
movzx edx, dl
mov eax, edx
sub ecx, edx
shr eax, 7
dec eax
mov edi, eax
and eax, edx
not edi
and ecx, edi
or ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x88]
push eax
call fcn.004ae5e0
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.004511b0
and edi, 1
lea eax, [esp + 0xec]
dec edi
shr edi, 0x1f
dec edi
push edi
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.004af510
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x44]
push eax
push eax
call fcn.004518a0
add dword [esp + 0x40], 0x1000
add esp, 0x2c
sub dword [esp + 0x18], 1
jne 0x4af390
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x11c]
pop edi
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x5c], eax
pop esi
xor ecx, esp
call fcn.004b09d8
mov esp, ebp
pop ebp
ret