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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509b20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x558384]
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, edx
mov dword [ebp - 0x2c], edi
mov edx, ecx
mov dword [ebp - 0x34], edx
test edx, edx
jne 0x420073
mov eax, 1
jmp 0x4202ab
test edi, edi
je 0x420069
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea esi, [ecx + 2]
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420090
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040d260
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov esi, 0x811c9dc5
mov eax, dword [ebp - 0x18]
cmovae ebx, edx
xor ecx, ecx
add eax, eax
je 0x4200da
mov edi, eax
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x4200c6
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x420111
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420107
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4202c7
push ecx
push edx
call fcn.004bcf17
add esp, 8
mov edx, dword [0x566354]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x420149
cmp dword [eax + 0x10], esi
jae 0x42012c
mov eax, dword [eax + 8]
jmp 0x420130
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x420122
cmp ecx, edx
je 0x420149
cmp esi, dword [ecx + 0x10]
jb 0x420149
mov eax, 2
jmp 0x4202ab
push str.system
push edi
call fcn.004dfa3c
add esp, 8
test eax, eax
jne 0x420188
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x566420]
cmp eax, dword [ecx + 4]
jg 0x4202cc
cmp byte [0x566424], 0
mov edi, 0x529cc8
mov eax, 0x529cd4
cmove edi, eax
lea ecx, [ebp - 0x30]
call fcn.004212a0
mov dword [ebp - 4], 0
mov ecx, edi
mov ebx, dword [ebp - 0x30]
lea edx, [ecx + 2]
mov dword [ebx], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4201a5
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebx + 0x1c]
call fcn.0040d260
mov eax, dword [ebp + 8]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp + 0x18]
push 0x3c
mov dword [ebx + 0x44], eax
lea eax, [ebx + 0x4c]
push 0
push eax
call fcn.004dc680
mov dword [ebp - 0x1c], esi
add esp, 0xc
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x4201fa
lock inc dword [esi + 4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x566354
call fcn.004213b0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x3c]
mov ecx, 0x566354
push eax
call fcn.00421400
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x420253
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x420253
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x420253
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp dword [ebp + 0x1c], 0
mov byte [ebp - 4], 0
je 0x420280
mov edi, dword [ebp - 0x34]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420265
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, 0x559350
call fcn.0040d260
mov dword [ebp - 4], 3
test esi, esi
je 0x4202a9
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4202a9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4202a9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor eax, eax
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.004bd1b9
mov esp, ebp
pop ebp
ret
call fcn.004df969
push 0x566420
call fcn.004bd0c5
add esp, 4
cmp dword [0x566420], 0xffffffff
jne 0x420174
push ecx
xor edx, edx
call fcn.00418620
add esp, 4
mov byte [0x566424], al
push 0x566420
call fcn.004bd07b
add esp, 4
jmp 0x420174