Function at 0x1005cb40
Capabilities:
Encrypt data using rc4 ksa
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10152712
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x101a42b4]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101a42b4]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x190]
mov esi, dword [esp + 0x18c]
xor ebx, ebx
push 0xff
lea ecx, [esp + 0x7d]
push ebx
mov dword [esp + 0x68], ebx
push ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x40], eax
mov byte [esp + 0x84], bl
call fcn.100f4ed0
add esp, 0xc
push edx
pop edx
mov ecx, ecx
test dl, dl
mov dword [esp + 0x30], ebx
xor ebp, ebp
xor edi, edi
test ch, ch
push ecx
pop ecx
test ecx, ecx
mov dword [esp + 0x14], ebx
mov cl, cl
push eax
pop eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1ac]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1ac]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x1ac]
push ecx
mov ecx, dword [esp + 0x1ac]
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
call fcn.1003cc50
add esp, 0x28
test eax, eax
jne 0x1005cc4d
lea eax, [esp + 0x78]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
jmp 0x1005cc30
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1005cc30
sub eax, edx
push eax
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call fcn.1000a1e0
jmp 0x1005cdd0
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x34], ebx
jle 0x1005cd10
xor esi, esi
cmp ecx, ebx
jle 0x1005ccf9
mov ecx, dword [esp + 0x34]
imul ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x14]
lea eax, [ecx + esi*4]
mov cl, cl
push ebx
pop ebx
test cl, cl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
test bh, bh
mov eax, dword [eax]
mov dh, dh
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
mov dh, dh
movzx edx, ah
test esi, esi
and eax, 0xff
mov dword [esp + 0x68], eax
mov bl, bl
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x74]
push eax
push edx
push ecx
call fcn.10036550
add esp, 0x18
push ecx
pop ecx
add edi, dword [esp + 0x28]
test ebx, ebx
add ebp, dword [esp + 0x2c]
mov ebx, ebx
mov ecx, dword [esp + 0x24]
add dword [esp + 0x30], ecx
test ch, ch
mov ecx, dword [esp + 0x3c]
add esi, 1
cmp esi, ecx
jl 0x1005cc6b
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
add edx, 1
cmp edx, eax
mov dword [esp + 0x34], edx
jl 0x1005cc61
mov esi, dword [esp + 0x64]
imul ecx, eax
mov eax, edi
xor edx, edx
div ecx
mov edi, eax
mov edx, edx
mov ecx, dword [esp + 0x3c]
imul ecx, dword [esp + 0x40]
mov eax, ebp
xor edx, edx
div ecx
mov ebp, eax
test bh, bh
mov ecx, dword [esp + 0x3c]
imul ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
xor edx, edx
div ecx
mov dword [esp + 0x30], eax
push edx
pop edx
mov edx, dword [esp + 0x14]
push edx
call fcn.100f3efb
add esp, 4
mov dword [esp + 0x14], ebx
mov cl, cl
mov cl, 0x25
mov al, 0x64
mov dl, 0x2e
mov byte [esp + 0x6c], cl
mov byte [esp + 0x6d], al
mov byte [esp + 0x6e], dl
mov byte [esp + 0x6f], cl
mov byte [esp + 0x70], al
mov byte [esp + 0x71], dl
mov byte [esp + 0x72], cl
mov byte [esp + 0x73], al
mov byte [esp + 0x74], bl
push ecx
pop ecx
mov eax, dword [esp + 0x30]
push eax
push ebp
push edi
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.100f5cb0
add esp, 0x14
mov dl, dl
lea eax, [esp + 0x78]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1005cdb8
sub eax, edi
push eax
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call fcn.1000a1e0
mov dword [esp + 0x184], ebx
mov dword [esp + 0x60], 1
mov eax, esi
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.100f43d6
add esp, 0x174
ret