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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x675978]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
push edi
push 0x4df40
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esi
call sym.BZDPatcher.exe_SDL_malloc
mov edi, eax
mov dword [esi], 0
add esp, 4
test edi, edi
je 0x567794
push 0x10
lea eax, [ebp - 0x44]
push 0
push eax
call sym.BZDPatcher.exe_SDL_memset
lea eax, [ebx + 1]
mov dword [ebp - 0x38], 1
imul eax, dword [ebp + 0x10]
mov ecx, 0x40
cmp eax, ecx
cmovl eax, ecx
add eax, 0x39
push eax
mov dword [ebp - 0x40], eax
call sym.BZDPatcher.exe_SDL_malloc
add esp, 0x10
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x567286
push edi
call sym.BZDPatcher.exe_SDL_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b6a10
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x48], 0x29
lea ecx, [ecx]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push 1
push eax
call fcn.00566a50
add esp, 0xc
sub dword [ebp - 0x48], 1
jne 0x567290
mov eax, dword [ebp + 0x20]
mov ecx, 0xa
cmp eax, ecx
mov dword [edi], fcn.00566a50
cmova eax, ecx
mov esi, dword [eax*4 + 0x637e94]
lea eax, [ebp - 0x44]
or esi, 0x1000
mov dword [edi + 4], eax
mov ecx, esi
mov dword [edi + 8], esi
and ecx, 0xfff
mov eax, 0xaaaaaaab
add ecx, 2
mul ecx
mov ecx, esi
mov eax, 0xaaaaaaab
shr edx, 1
shr ecx, 0xe
inc edx
and ecx, 1
mov dword [edi + 0xc], edx
mov dword [edi + 0x14], ecx
mov ecx, esi
sar ecx, 2
and ecx, 0x3ff
add ecx, 2
mul ecx
shr edx, 1
inc edx
mov dword [edi + 0x10], edx
test esi, 0x8000
jne 0x56732d
push 0x10000
lea eax, [edi + 0x29272]
push 0
push eax
call sym.BZDPatcher.exe_SDL_memset
add esp, 0xc
lea eax, [edi + 0x9273]
mov dword [edi + 0x44], 0
mov dword [edi + 0x28], eax
lea eax, [edi + 0x9272]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x39272]
push 0x240
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
lea eax, [edi + 0x8192]
push 0
push eax
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x38], 8
mov dword [edi + 0x6c], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x18], 1
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
call sym.BZDPatcher.exe_SDL_memset
push 0x40
lea eax, [edi + 0x83d2]
push 0
push eax
call sym.BZDPatcher.exe_SDL_memset
mov eax, dword [ebp + 0x10]
add esp, 0x18
test eax, eax
jle 0x5674cc
cmp dword [ebp + 0x24], 0
je 0x56748c
lea esi, [eax - 1]
imul esi, ebx
add esi, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
push 0
push 0
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 1
push eax
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.00564f30
push 0
push 0
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push eax
push esi
push edi
call fcn.00564f30
add esp, 0x30
sub esi, ebx
sub dword [ebp - 0x4c], 1
jne 0x567450
jmp 0x5674cc
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
push 0
push 0
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 1
push eax
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.00564f30
push 0
push 0
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push eax
push esi
push edi
call fcn.00564f30
add esp, 0x30
add esi, ebx
sub dword [ebp - 0x54], 1
jne 0x567492
cmp dword [edi], 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x78], eax
mov dword [edi + 0x74], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x80], 4
je 0x56777c
cmp dword [edi + 0x6c], 0
jne 0x56777c
or dword [edi + 0x68], 1
cmp dword [edi + 0x5c], 0
jne 0x56757b
cmp dword [edi + 0x60], 0
jne 0x56757b
push edi
call fcn.00565650
add esp, 4
test eax, eax
jne 0x56754b
mov eax, dword [edi + 0x6c]
jmp 0x567587
cmp dword [edi + 0x20], 0
jne 0x56757b
cmp dword [edi + 0x88], 0
jne 0x56757b
cmp dword [edi + 0x5c], 0
jne 0x56757b
push 4
push edi
call fcn.00565e40
add esp, 8
test eax, eax
jns 0x567574
mov eax, dword [edi + 0x6c]
jmp 0x567587
mov dword [edi + 0x60], 1
push edi
call fcn.00566390
mov dword [edi + 0x6c], eax
add esp, 4
cmp eax, 1
jne 0x567783
mov eax, dword [ebp - 0x50]
lea ebx, [ebp - 0x24]
mov edx, dword [ebp - 0x44]
mov esi, 0x11
mov ecx, dword [ebp + 0xc]
add edx, 0xffffffd7
mov byte [ebp - 0x1d], cl
mov dword [eax], edx
mov eax, ecx
mov ecx, dword [ebp + 0x10]
sar eax, 8
mov byte [ebp - 0x1e], al
mov eax, ecx
sar eax, 8
mov byte [ebp - 0x1a], al
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0xc], dl
mov dword [ebp - 0x30], 0x474e5089
mov dword [ebp - 0x2c], 0xa1a0a0d
mov al, byte [eax + 0x637ec0]
mov byte [ebp - 0x17], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0xf], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0xe], al
mov eax, edx
shr eax, 8
or edx, 0xffffffff
mov dword [ebp - 0x28], 0xd000000
mov dword [ebp - 0x24], 0x52444849
mov word [ebp - 0x20], 0
mov word [ebp - 0x1c], 0
mov byte [ebp - 0x18], 8
mov dword [ebp - 0x16], 0
mov word [ebp - 0x12], 0
mov byte [ebp - 0x10], 0
mov dword [ebp - 0xb], 0x54414449
mov byte [ebp - 0x19], cl
mov byte [ebp - 0xd], al
lea ecx, [ecx]
mov al, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, al
mov eax, edx
xor eax, ecx
shr edx, 4
and eax, 0xf
shr ecx, 4
xor edx, dword [eax*4 + 0x637610]
mov eax, edx
shr edx, 4
and eax, 0xf
xor ecx, eax
xor edx, dword [ecx*4 + 0x637610]
sub esi, 1
jne 0x567630
not edx
mov eax, edx
shl edx, 8
shr eax, 0x18
mov byte [ebp - 0x13], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0x12], al
shl edx, 8
mov eax, edx
shr edx, 0x10
shr eax, 0x18
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x30]
push 0x29
push eax
push dword [ebp - 0x3c]
mov byte [ebp - 0x10], dl
call sym.BZDPatcher.exe_SDL_memcpy
mov ecx, dword [ebp - 0x44]
add esp, 0xc
mov esi, dword [ebp - 0x40]
lea ebx, [ecx + 0x10]
mov dword [ebp - 0x54], ebx
cmp ebx, esi
jbe 0x5676ee
cmp dword [ebp - 0x38], 0
je 0x5676e0
mov ecx, 0x80
lea eax, [esi + esi]
cmp eax, 0x80
mov esi, eax
cmovb esi, ecx
cmp ebx, esi
ja 0x5676b4
push esi
push dword [ebp - 0x3c]
call sym.BZDPatcher.exe_SDL_realloc
add esp, 8
test eax, eax
je 0x5676e0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], esi
jmp 0x5676f1
mov eax, dword [ebp - 0x50]
mov dword [eax], 0
jmp 0x567783
mov eax, dword [ebp - 0x3c]
push 0x10
add eax, ecx
push 0x637ecc
push eax
call sym.BZDPatcher.exe_SDL_memcpy
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x44], ebx
mov eax, dword [eax]
add eax, 4
push eax
lea eax, [esi + 0x25]
push eax
push 0
call fcn.00564ed0
mov ebx, eax
mov eax, dword [ebp - 0x54]
mov ecx, ebx
shl ebx, 8
shr ecx, 0x18
push edi
mov byte [eax + esi - 0x10], cl
mov eax, ebx
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
shr eax, 0x18
shl ebx, 8
mov byte [edx + ecx - 0xf], al
mov edx, ebx
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
shr edx, 0x18
shr ebx, 0x10
mov byte [ecx + eax - 0xe], dl
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
mov byte [eax + ecx - 0xd], bl
mov ecx, dword [ebp - 0x50]
add dword [ecx], 0x39
call sym.BZDPatcher.exe_SDL_free
mov eax, dword [ebp - 0x3c]
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b6a10
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x6c], 0xfffffffe
push edi
call sym.BZDPatcher.exe_SDL_free
push dword [ebp - 0x3c]
call sym.BZDPatcher.exe_SDL_free
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b6a10
mov esp, ebp
pop ebp
ret