Function at 0x537b74
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
mov ebx, 0x50505255
push ebx
mov esi, 0x400
push esi
stosw word es:[edi], ax
mov edi, dword [0x2a6d4]
push 1
call edi
xor ecx, ecx
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], si
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x537bc6
mov dword [ebp - 0x10], 0xc000009a
jmp 0x537e4a
lea eax, [ebp - 0x18]
push eax
push 0x33ca0
call fcn.0051a3c0
mov eax, dword [0x2f174]
cmp word [eax + 0xd8], 0
je 0x537cea
push ebx
push 0x1c
push 1
call edi
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x537cea
xor eax, eax
mov word [ebp - 0x20], ax
push ebx
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
push 0x1000
push 1
stosw word es:[edi], ax
call dword [0x2a6d4]
push 7
mov ebx, eax
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
push 0x33c7e
lea eax, [edi + 4]
add esi, 0x14
push eax
mov dword [esi + 4], esi
mov dword [esi], esi
call dword [0x2a774]
push 0x50505255
push 0x1000
push 1
call dword [0x2a6d4]
xor ecx, ecx
mov word [ebp - 0x20], cx
mov ecx, 0x1000
mov word [ebp - 0x1e], cx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x537cd5
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x2f174]
add eax, 0xd8
push eax
call fcn.0052021a
test eax, eax
jl 0x537ccd
lea ecx, [ebp - 0x20]
push ecx
push 0x33c78
lea eax, [ebx + 0x1c]
push 0xfe0
push eax
call fcn.00519254
add esp, 0x10
test eax, eax
jl 0x537ccd
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0xfe0
lea eax, [ebx + 0x1c]
push eax
call fcn.00519422
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], eax
add dword [edi], eax
mov eax, dword [esi + 4]
and dword [ebp - 8], 0
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 8]
mov dword [esi + 4], ebx
push dword [ebp - 0x1c]
call fcn.0051b75e
test edi, edi
je 0x537ce5
push ebx
call fcn.0051b75e
push edi
call fcn.0051b75e
mov ebx, 0x50505255
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.00538c68
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x537e21
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xb4], 0xfa
jne 0x537e1b
mov eax, dword [ecx + 0x5c]
cmp dword [ecx + 0x350], eax
jne 0x537e1b
add eax, 0xfff
push ebx
and eax, 0xfffff000
push eax
push 1
call dword [0x2a6d4]
mov esi, eax
test esi, esi
je 0x537e18
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x50]
mov ebx, dword [ecx]
xor edi, edi
jmp 0x537d71
push dword [ebx + 8]
lea eax, [ebx + 0x1c]
push eax
lea eax, [edi + esi]
push eax
call fcn.005247d2
mov eax, dword [ebp - 4]
add esp, 0xc
add edi, dword [ebx + 8]
mov ebx, dword [ebx]
lea ecx, [eax + 0x50]
cmp ebx, ecx
jne 0x537d53
xor edi, edi
mov dword [ebp - 8], 0x15974263
xor ecx, ecx
cmp dword [eax + 0x5c], edi
jbe 0x537d97
xor dword [ecx + esi], 0x53f83610
mov eax, dword [ebp - 4]
add ecx, 4
cmp ecx, dword [eax + 0x5c]
jb 0x537d85
push 4
lea eax, [ebp - 8]
push eax
push edi
call fcn.00517b72
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x350]
lea ecx, [eax - 4]
lea eax, [esi + 4]
mov edx, dword [eax]
cmp edx, ecx
jae 0x537dbd
mov ecx, edx
push ecx
push eax
push dword [ebp - 8]
call fcn.00517b72
mov dword [ebp - 8], eax
cmp dword [esi], eax
jne 0x537e12
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
mov eax, dword [0x2f174]
push dword [eax + 0xdc]
call fcn.005247d2
mov ax, word [esi + 0xc]
mov ecx, dword [0x2f174]
mov word [ecx + 0xd8], ax
mov eax, dword [0x2f174]
add esp, 0xc
add eax, 0xc0
push eax
call dword [0x2a6e8]
call fcn.00518490
mov dword [ebp - 0x10], edi
push esi
call fcn.0051b75e
mov ecx, dword [ebp - 4]
push ecx
call fcn.0051fb24
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x537e3c
lea eax, [esi + 0x14]
cmp dword [eax], eax
je 0x537e36
push dword [eax]
call fcn.0051b75e
push esi
call fcn.0051b75e
cmp dword [ebp - 0x14], 0
je 0x537e4a
push dword [ebp - 0x14]
call fcn.0051b75e
call dword [0x2a770]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret