Function at 0x10059b70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp byte [0x102a56d8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x10059e24
cmp dword [0x102a5680], 0
je 0x10059e24
cmp byte [0x102a5688], 0
je 0x10059e24
cmp dword [0x102b18a8], 0
jne 0x10059d33
call fcn.10058540
mov edx, eax
mov dword [ebp - 0x28], 0
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059bd0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1000d310
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae ecx, ebx
push 0xc
push str.scrimmagemap
push 0
mov edx, esi
setae byte [ebp - 1]
call fcn.100504b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10059c86
lea ecx, [eax - 1]
mov dword [ebp - 0x40], 0
cmp esi, ecx
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0xf
cmovb ecx, esi
cmp byte [ebp - 1], 0
push ecx
cmovne eax, ebx
lea ecx, [ebp - 0x40]
push eax
call fcn.1000d310
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000d280
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x10059c80
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10059c76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059e3c
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
xor ecx, ecx
mov edx, 0x811c9dc5
test esi, esi
je 0x10059cbb
cmp dword [ebp - 0x14], 0x10
setae byte [ebp - 1]
nop dword [eax]
cmp byte [ebp - 1], 0
lea eax, [ebp - 0x28]
cmovne eax, ebx
movsx eax, byte [eax + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10059ca0
lea eax, [ebp - 8]
mov dword [ebp - 8], edx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1005ce10
mov ecx, dword [eax]
lea eax, [ebp - 0x28]
add ecx, 0xc
cmp ecx, eax
je 0x10059ce8
cmp dword [ebp - 0x14], 0x10
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1000d310
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1005cfe0
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, 0xc
mov dword [0x102b18a8], eax
cmp edx, 0x10
jb 0x10059d33
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10059d29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059e3c
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov esi, dword [0x1029d750]
call fcn.1010ed50
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x10059e41
lea eax, [esi + esi*2]
shl eax, 4
lea esi, [eax + 8]
add esi, ebx
je 0x10059d88
mov eax, dword [esi + 0x24]
and eax, 0xfffffffc
je 0x10059d88
add eax, 4
push 0x102985bc
push eax
call fcn.101e31c2
add esp, 8
test eax, eax
je 0x10059d8a
xor esi, esi
cmp byte [esi], 0
je 0x10059e24
mov ecx, dword [0x102b18a8]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x10059e24
mov ecx, dword [0x102a5680]
call fcn.10003f50
mov eax, dword [eax]
test eax, eax
je 0x10059e24
push eax
call fcn.10004330
test eax, eax
je 0x10059e24
mov ecx, eax
call fcn.10006f70
movsx eax, word [eax]
cmp eax, dword [0x102a5e24]
jne 0x10059de0
mov dword [edi], 0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [0x102a5e28]
jne 0x10059df7
mov dword [edi], 1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [0x102a5e20]
jne 0x10059e0e
mov dword [edi], 2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [0x102a5e2c]
je 0x10059e2d
cmp eax, dword [0x102a5e34]
je 0x10059e2d
mov dword [edi], 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 3
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.101e6db2
call fcn.10006b90
int3