Function at 0x5a91e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a87da
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x70], 0x11
xor ecx, ecx
mov dword [ebp - 0x6c], 0xc800f5
mov dword [ebp - 0x68], 0xc300d9
mov dword [ebp - 0x64], 0xdd00da
mov dword [ebp - 0x60], 0xc200ca
mov dword [ebp - 0x5c], 0xd400ed
mov dword [ebp - 0x58], 0xd500d6
mov dword [ebp - 0x54], 0xc300c1
mov dword [ebp - 0x50], 0xdd00c5
mov dword [ebp - 0x4c], 0xba00ca
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x6c], ax
inc ecx
mov eax, dword [ebp - 0x70]
cmp ecx, eax
jb 0x5a9260
xor ecx, ecx
mov word [ebp + eax*2 - 0x6c], cx
lea ecx, [ebp - 0xb4]
mov eax, dword [edi + 0x44]
add eax, 0x6c
push eax
call fcn.00404120
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00408060
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x6c]
call fcn.00403b80
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 5
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
mov bl, al
call fcn.00404220
lea ecx, [ebp - 0x6c]
call fcn.00404490
test bl, bl
je 0x5a94b0
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x5a94b0
nop dword [eax]
mov edi, dword [esi + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test edi, edi
je 0x5a9336
lock inc dword [edi + 4]
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
add eax, 0x4c
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0xcc]
call fcn.00404120
push 0x7cf384
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00421b40
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00413490
add esp, 0x18
lea ecx, [ebp - 0x60]
call fcn.00404490
lea ecx, [ebp - 0xcc]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x9c]
call fcn.00403b80
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0xe
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x84]
mov bl, al
call fcn.00404220
lea ecx, [ebp - 0x9c]
call fcn.00404490
test bl, bl
je 0x5a946c
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x90]
call fcn.00404120
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xf
call fcn.00447b60
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xb
mov bl, al
call fcn.00404490
test bl, bl
jne 0x5a946c
mov ebx, dword [ebp - 0x74]
lea ecx, [ebp - 0x30]
push ecx
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 0x98]
cmp dword [ebx + 0x9c], eax
je 0x5a9460
mov ecx, eax
call fcn.00404120
add dword [ebx + 0x98], 0x18
jmp 0x5a946c
push eax
lea ecx, [ebx + 0x94]
call fcn.00404950
lea ecx, [ebp - 0x30]
call fcn.00404490
mov byte [ebp - 4], 0x10
test edi, edi
je 0x5a949d
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x5a949d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x5a949d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
add esi, 8
mov byte [ebp - 4], 2
cmp esi, dword [eax + 8]
jne 0x5a9320
lea ecx, [ebp - 0x48]
call fcn.00404490
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret