Function at 0x1005f1b0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, edx
mov edi, ecx
mov eax, dword [0x1008e00c]
xor eax, ebp
mov dword [esp + 0x20], eax
push ecx
call fcn.1005f0c0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1005f1ef
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.10039ea0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 8], edi
mov ecx, edi
push 8
mov edi, eax
push eax
call fcn.10052e10
mov dword [esp], esi
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov esi, dword [esp]
mov eax, dword [esi + 0x58]
mov dword [esp + 4], eax
mov edi, dword [esi + 0x5c]
mov edx, edi
lock cmpxchg8b qword [esi + 0x58]
xor edx, edi
xor eax, dword [esp + 4]
or eax, edx
jne 0x1005f20e
mov edi, dword [esp]
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ecx
mov ecx, edi
call fcn.1003e600
mov esi, dword [edi + 0x3c]
cmp byte [edi + 0x38], 0
je 0x1005f253
lea eax, [edi + 0x18]
mov dword [edi + 0x30], 0
push eax
call dword [0x1008bee0]
test esi, esi
jne 0x1005f298
lea esi, [esp + 0x14]
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.10047940
mov eax, dword [esi]
lea esi, [esp + 0x18]
mov dword [esi], eax
mov ecx, edi
mov edx, esi
call fcn.100568e0
mov ebx, dword [esi]
test ebx, ebx
je 0x1005f28f
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
push 1
call esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esp]
jmp 0x1005f2fc
mov ecx, edi
call fcn.1003e600
mov ebx, dword [edi + 0x3c]
xor esi, esi
mov edi, 0
test ebx, ebx
je 0x1005f2c9
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
call esi
movzx esi, al
mov edi, eax
and edi, 0xffffff00
mov ecx, dword [esp]
cmp byte [ecx + 0x38], 0
je 0x1005f2e3
lea eax, [ecx + 0x18]
mov dword [ecx + 0x30], 0
push eax
call dword [0x1008bee0]
test ebx, ebx
je 0x1005f3ad
or edi, esi
mov esi, dword [esp + 0xc]
cmp edi, esi
mov ebx, dword [esp]
jb 0x1005f3c2
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x14]
mov dword [edi], ebx
mov ecx, ebx
call fcn.1003e600
lea edx, [esp + 0x10]
mov dword [edx], esi
mov ecx, ebx
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.1005f3e0
add esp, 8
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
je 0x1005f348
mov dword [eax + 0x30], 0
add eax, 0x18
push eax
call dword [0x1008bee0]
mov eax, 8
mov edi, dword [esp + 8]
mov ecx, edi
push eax
lea esi, [esp + 0x1c]
push esi
call fcn.10052e10
movsd xmm0, qword [esp + 0x18]
movsd qword [ebx + 0x68], xmm0
mov ecx, edi
mov eax, 8
push eax
push esi
call fcn.10052e10
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp]
mov eax, dword [esi + 0x70]
mov dword [esp + 4], eax
mov edi, dword [esi + 0x74]
mov edx, edi
lock cmpxchg8b qword [esi + 0x70]
xor edx, edi
xor eax, dword [esp + 4]
or eax, edx
jne 0x1005f382
xor eax, eax
mov ecx, dword [esp]
mov dword [ecx + 0x7c], eax
mov dword [ecx + 0x78], eax
jmp 0x1005f1dc
mov dword [0x1008f8f4], 0x1008371f
int3
mov dword [0x1008f8f4], 0x1008205d
int3