Function at 0x4bed90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push 0xffffffffffffffff
push 0x5cea67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor edi, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], edi
call fcn.004f7022
mov dword [esp + 0x28], edi
call fcn.0042b160
mov ebx, dword [esp + 0x448]
mov dword [esp + 0x20], edi
cmp ebx, edi
je 0x4bee4d
mov eax, dword [esp + 0x44c]
lea ecx, [esp + 0x18]
push eax
call fcn.005980a0
mov esi, eax
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x440], edi
call fcn.005980a0
push esi
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x448], 1
call fcn.00598261
mov eax, dword [eax]
push 0x61d6e4
push eax
call fcn.004f600d
add esp, 8
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00598032
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 0
call fcn.00598032
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x4beeaa
lea edx, [ebp + 0x98]
lea eax, [ebp + 0x94]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00598261
push str..exe
lea edx, [esp + 0x1c]
push eax
push edx
mov dword [esp + 0x448], 2
call fcn.005982c7
mov eax, dword [eax]
push 0x61d6e4
push eax
call fcn.004f600d
add esp, 8
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.00598032
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00598032
test ebx, ebx
je 0x4bf05d
mov eax, dword [esp + 0x450]
test eax, eax
je 0x4bef06
push 0x61d6e4
push eax
call fcn.004f600d
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x4bef06
push 2
mov esi, eax
push 0
push esi
call fcn.004f5f23
push esi
call fcn.004f5da0
cdq
and edx, 0x3ff
push 0
add eax, edx
push 0
mov edi, eax
push esi
sar edi, 0xa
inc edi
call fcn.004f5f23
add esp, 0x1c
push 2
push 0
push ebx
call fcn.004f5f23
push ebx
call fcn.004f5da0
cdq
and edx, 0x3ff
push 0
add eax, edx
push 0
mov esi, eax
push ebx
sar esi, 0xa
inc esi
call fcn.004f5f23
add edi, esi
mov dword [esp + 0x30], edi
lea eax, [edi*4]
push eax
call fcn.004f5323
add esp, 0x20
xor ecx, ecx
test esi, esi
mov dword [esp + 0x28], eax
jle 0x4befcb
mov ebp, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x34]
push ebx
rep stosd dword es:[edi], eax
push 0x400
lea ecx, [esp + 0x3c]
push 1
push ecx
mov dword [ebp], eax
call fcn.004f5b4c
mov esi, eax
add esp, 0x10
xor edx, edx
test esi, esi
jle 0x4befad
mov ecx, dword [ebp]
xor eax, eax
mov al, byte [esp + edx + 0x34]
mov edi, ecx
and edi, 0xff
xor eax, edi
shr ecx, 8
mov eax, dword [eax*4 + 0x62de34]
xor eax, ecx
inc edx
cmp edx, esi
mov dword [ebp], eax
jl 0x4bef86
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x4bef59
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp ecx, edi
mov dword [esp + 0x30], edi
jge 0x4bf043
sub edi, ecx
lea esi, [eax + ecx*4]
mov dword [esp + 0x10], edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
mov dword [esi], eax
push ecx
push 0x400
push 1
push edx
call fcn.004f5b4c
mov edi, eax
add esp, 0x10
xor edx, edx
test edi, edi
jle 0x4bf031
mov ecx, dword [esi]
xor eax, eax
mov al, byte [esp + edx + 0x34]
mov ebp, ecx
and ebp, 0xff
xor eax, ebp
shr ecx, 8
mov eax, dword [eax*4 + 0x62de34]
xor eax, ecx
inc edx
cmp edx, edi
mov dword [esi], eax
jl 0x4bf00c
mov eax, dword [esp + 0x10]
add esi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x4befdc
mov ebp, dword [esp + 0x24]
push ebx
call fcn.004f5acf
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4bf05d
push eax
call fcn.004f5acf
add esp, 4
mov eax, dword [esp + 0x448]
test eax, eax
je 0x4bf0b9
push eax
lea ecx, [esp + 0x18]
call fcn.005980a0
push str..xxx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x448], 3
call fcn.005982c7
mov eax, dword [eax]
push 0x61d6e4
push eax
call fcn.004f600d
add esp, 8
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00598032
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x4bf116
lea edx, [ebp + 0x98]
add ebp, 0x94
push edx
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00598261
push str..xxx
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x448], 4
call fcn.005982c7
mov eax, dword [eax]
push 0x61d6e4
push eax
call fcn.004f600d
add esp, 8
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00598032
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00598032
test esi, esi
je 0x4bf18e
push 2
push 0
push esi
call fcn.004f5f23
push esi
call fcn.004f5da0
push 0
push 0
push esi
mov edi, eax
call fcn.004f5f23
lea edx, [edi + 1]
push edx
call fcn.004f5323
push esi
mov ebx, eax
push edi
push 1
push ebx
call fcn.004f5b4c
push esi
mov byte [ebx + edi], 0
call fcn.004f5acf
mov esi, dword [esp + 0x5c]
add esp, 0x34
test esi, esi
je 0x4bf19b
test ebx, ebx
je 0x4bf19b
call fcn.0045ee10
test eax, eax
jge 0x4bf1bb
push eax
push str.cI___error__d_n
call fcn.00436520
push ebx
call fcn.004f5907
push esi
call fcn.004f5907
add esp, 0x10
jmp 0x4bf19b
mov eax, dword [esp + 0x28]
push eax
call fcn.004f5907
add esp, 4
call fcn.004f7022
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x430
ret 0x10
push 0
lea ecx, [esp + 0x20]
push 0xcb
push ecx
call fcn.0045c2d0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
lea eax, [edx*4]
push eax
push esi
push ecx
call fcn.0045c660
mov edx, dword [esp + 0x34]
push 0
push esi
push edx
call fcn.0045c660
push esi
call fcn.004f5907
lea eax, [esp + 0x54]
push str.HPHS_0
push eax
call fcn.004bb3f0
add esp, 0x30
test eax, eax
jne 0x4bf224
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0045c2f0
push ebx
call fcn.004f5907
add esp, 8
jmp 0x4bf19b
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push edx
push eax
push ebx
call fcn.0055cd90
add esp, 0xc
test eax, eax
je 0x4bf26d
push 0x646
push eax
push str.cCS___error__d__line__d_n
call fcn.00436520
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0045c2f0
mov edx, dword [esp + 0x3c]
push edx
call fcn.0045c2f0
push ebx
call fcn.004f5907
add esp, 0x18
jmp 0x4bf19b
mov eax, dword [esp + 0x1c]
push eax
call fcn.0045c2f0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0045c2f0
add esp, 8
test eax, eax
jge 0x4bf296
push eax
push str.cDC___error__d_n
call fcn.00436520
add esp, 8
call fcn.0045ef10
test eax, eax
jge 0x4bf2ad
push eax
push str.cE___error__d._n
call fcn.00436520
add esp, 8
push ebx
call fcn.004f5907
mov eax, dword [esp + 0x448]
add esp, 4
jmp 0x4bf1a0