Function at 0x4036c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a78d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x476050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0x10
call fcn.00433baf
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
add esp, 4
or ebx, 0xffffffff
movq qword [eax], xmm0
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_struct__I3API_MODULE_TABLE_.0
mov dword [ecx], 0
mov esi, dword [0x478c64]
mov dword [0x478c60], ecx
mov dword [0x478c64], eax
test esi, esi
je 0x403760
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40375a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x40375a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [0x478c60]
test ecx, ecx
je 0x4038f6
push 0x58
call fcn.00433baf
mov esi, eax
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x14], esi
movq qword [esi], xmm0
lea edi, [esi + 0xc]
push 0x4c
mov dword [esi + 8], 0
push 0
push edi
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj2_struct__I3API_API_TABLE_.0
call fcn.004359d0
mov ebx, dword [0x478c6c]
add esp, 0xc
mov dword [0x478c68], edi
mov dword [0x478c6c], esi
test ebx, ebx
je 0x4037e6
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x4037e0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x4037e0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov edi, dword [0x478c68]
test edi, edi
je 0x4038da
mov ecx, 0x3b
xor edx, edx
mov al, byte [edx + 0x46d238]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x24], al
and ecx, 0x800000ff
jns 0x403812
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xe
jl 0x4037f5
mov byte [ebp - 0x16], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
mov esi, dword [0x478c60]
push eax
mov eax, dword [0x478c78]
mov eax, dword [eax + 8]
call eax
mov dword [esi], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x478c60]
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 0
mov byte [ebp - 0x16], 0
cmp dword [eax], 0
jne 0x40389e
push 1
call fcn.00433baf
mov eax, dword [0x478c78]
mov eax, dword [eax + 0xd4]
call eax
push eax
push 0x4e21
call fcn.004012b0
push 1
call fcn.00433baf
mov eax, dword [0x478c78]
mov eax, dword [eax + 0xd4]
call eax
push eax
push 0x4e24
jmp 0x403910
mov ecx, dword [ebp - 0x10]
call fcn.00402c60
test al, al
jne 0x4038c6
push 1
call fcn.00433baf
mov eax, dword [0x478c78]
mov eax, dword [eax + 0xd4]
call eax
push eax
push 0x4e25
jmp 0x403910
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.00433baf
mov eax, dword [0x478c78]
mov eax, dword [eax + 0xd4]
call eax
push eax
push 0x4e23
jmp 0x403910
push 1
call fcn.00433baf
mov eax, dword [0x478c78]
mov eax, dword [eax + 0xd4]
call eax
push eax
push 0x4e22
call fcn.004012b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret