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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x118
mov eax, dword [0x5b7168]
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.004fc3c0
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 0x589000
push eax
call fcn.004f9ab0
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.004ebcb0
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.004faab0
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 1
movaps xmm0, xmmword [esp + 0x50]
por xmm0, xmmword [esp + 0x70]
movaps xmm1, xmmword [esp + 0x80]
por xmm1, xmmword [esp + 0x60]
por xmm1, xmm0
mov dword [esp + 0x94], 0
movaps xmm0, xmm1
mov dword [esp + 0x98], 0
psrldq xmm0, 8
por xmm1, xmm0
mov dword [esp + 0x9c], 0xffffffff
movups xmm0, xmm1
mov dword [esp + 0xa0], 0xffffffff
psrldq xmm0, 4
por xmm1, xmm0
mov dword [esp + 0xa4], 0xffffffff
movd ecx, xmm1
mov dword [esp + 0xa8], 0xfffffffe
mov dword [esp + 0xac], 0
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.004faab0
add esp, 0x3c
mov dword [esp + 0x14], 0x58a000
mov esi, 6
mov dword [esp + 0x18], 0x24
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.004f9ab0
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.004ebcb0
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.004faab0
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x44]
push eax
push eax
call fcn.004ec3a0
add dword [esp + 0x40], 0x1000
add esp, 0x2c
sub dword [esp + 0x18], 1
jne 0x4fa932
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.004fc928
mov esp, ebp
pop ebp
ret