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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x24]
shr ecx, 2
cmp eax, ecx
mov dword [esp + 0x10], edi
ja 0x438c22
mov edx, dword [edi + 0x14]
test edx, edx
lea esi, [edi + 0x10]
jne 0x43891c
xor ecx, ecx
jmp 0x438924
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 3
add ecx, 0xffffffff
cmp ecx, eax
ja 0x43896a
mov ecx, edx
test ecx, ecx
jne 0x438935
xor eax, eax
jmp 0x43893d
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
lea edx, [eax + eax - 3]
mov dword [edi + 0x20], edx
mov edx, dword [edi + 8]
sub esp, 8
mov eax, esp
lea ecx, [edi + 4]
mov dword [eax], 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x20]
add eax, 2
push eax
mov ecx, esi
call fcn.00435d40
jmp 0x438978
mov ecx, dword [edi + 0x20]
cmp ecx, eax
jae 0x438978
lea ecx, [ecx + ecx + 1]
mov dword [edi + 0x20], ecx
mov edx, dword [edi + 0x20]
mov ebx, dword [edi + 0x24]
mov ecx, dword [esi + 4]
shr edx, 1
sub ebx, edx
sub ebx, 1
test ecx, ecx
mov dword [esp + 0x14], ebx
je 0x43899c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x4389a2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add edi, 4
mov eax, dword [esi + 4]
mov ebp, dword [eax + ebx*8 + 4]
jne 0x4389b4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4389ce
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
lea ecx, [ebx + 1]
cmp ecx, eax
jb 0x4389d4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
cmp dword [ecx + ebx*8 + 0xc], ebp
lea eax, [ebx + 1]
je 0x438c18
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x4389f2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [edi + 4]
jne 0x4389fd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0xc]
push 0x1f31d
push edx
call fcn.00427470
add esp, 4
push eax
call dword [sym.imp.MSVCR80.dll_ldiv]
imul edx, edx, 0x41a7
imul eax, eax, 0xb14
add esp, 8
sub edx, eax
jns 0x438a2e
add edx, 0x7fffffff
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
imul eax, eax, 0xffff
mov ebx, dword [esp + 0x14]
add eax, edx
and eax, dword [ecx + 0x20]
cmp eax, ebx
jne 0x438a5b
cmp ebp, dword [edi + 4]
jne 0x438a53
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
jmp 0x4389b8
mov eax, dword [esp + 0x18]
mov edi, ecx
mov edx, dword [edi + 8]
add edi, 4
cmp ebp, dword [eax + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], edx
jne 0x438a7e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x20], edi
mov eax, dword [ebp]
mov dword [esp + 0x24], eax
je 0x438a91
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], ecx
je 0x438b84
mov edi, ebx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x438ab4
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438aba
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
cmp dword [edx + edi*8 + 4], ebp
jne 0x438af6
mov ecx, edx
test ecx, ecx
je 0x438ad5
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438adb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test edi, edi
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + edi*8], ecx
mov dword [eax + edi*8 + 4], edx
je 0x438af6
sub edi, 1
jmp 0x438aa1
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 8]
add ebx, 4
cmp ebx, ebx
je 0x438b0d
push 0
mov ecx, ebx
call fcn.004322e0
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov edx, dword [ecx + 4]
mov dword [edx], edi
mov eax, dword [edi + 4]
mov dword [eax], ebp
mov edx, dword [ecx + 4]
mov eax, dword [edi + 4]
mov dword [edi + 4], edx
mov edx, dword [ebp + 4]
mov dword [ecx + 4], edx
mov dword [ebp + 4], eax
mov eax, dword [ebx + 4]
mov ebp, dword [eax + 4]
cmp ebp, eax
jne 0x438b42
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x10]
mov ebx, dword [edx + 8]
mov edi, dword [edx + 0x24]
lea eax, [edx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
add edi, 1
test eax, eax
je 0x438b69
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 3
cmp edi, ecx
jb 0x438b73
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 4]
lea ecx, [edx + 4]
mov dword [eax + edi*8], ecx
mov dword [eax + edi*8 + 4], ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x24]
cmp ebx, edi
jae 0x438be9
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov ebx, dword [eax + 8]
add eax, 4
test ecx, ecx
je 0x438bad
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438bb3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
cmp dword [ecx + edi*8 + 4], ebx
jne 0x438be9
test ecx, ecx
je 0x438bcc
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438bd2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov dword [eax + edi*8], edx
mov dword [eax + edi*8 + 4], ebp
sub edi, 1
cmp dword [esp + 0x14], edi
jb 0x438b90
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 8]
add eax, 4
cmp dword [esp + 0x20], eax
je 0x438bff
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x24]
cmp ebp, edi
je 0x438c18
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x4389b8
mov eax, dword [esp + 0x10]
add dword [eax + 0x24], 1
mov edi, eax
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + 4]
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x438c30
sub eax, esi
add eax, ecx
cmp ecx, eax
mov edx, 0x811c9dc5
je 0x438c62
jmp 0x438c50
movsx esi, byte [ecx]
imul edx, edx, 0x1000193
add ecx, 1
xor edx, esi
cmp ecx, eax
jne 0x438c50
push 0x1f31d
push edx
call dword [sym.imp.MSVCR80.dll_ldiv]
imul edx, edx, 0x41a7
imul eax, eax, 0xb14
add esp, 8
sub edx, eax
jns 0x438c87
add edx, 0x7fffffff
mov ecx, dword [esp + 0x38]
mov ebp, dword [ecx]
mov eax, dword [edi + 0x20]
imul ebp, ebp, 0xffff
add ebp, edx
and ebp, eax
cmp dword [edi + 0x24], ebp
ja 0x438ca8
shr eax, 1
or edx, 0xffffffff
sub edx, eax
add ebp, edx
mov ecx, dword [edi + 0x14]
test ecx, ecx
mov dword [esp + 0x14], ebp
lea esi, [ebp + 1]
je 0x438cc2
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x438cc8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0x14]
mov esi, dword [ecx + esi*8 + 4]
lea eax, [edi + 4]
test eax, eax
jne 0x438cdc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [edi + 4]
mov dword [esp + 0x18], eax
mov ebx, esi
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x438cf8
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp ebp, eax
jb 0x438cfe
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0x14]
cmp dword [edx + ebp*8 + 4], ebx
je 0x438df3
cmp dword [esp + 0x18], 0
jne 0x438d18
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx + 4]
mov eax, dword [esp + 0x18]
cmp ebx, dword [eax + 4]
jne 0x438d2a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
cmp ebx, dword [ecx + 4]
jne 0x438d39
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
mov ecx, dword [ebx + 8]
cmp eax, ecx
jb 0x438ce5
ja 0x438d82
mov ecx, dword [ebx + 0xc]
mov eax, dword [edx + 4]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x438d70
test dl, dl
je 0x438d6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x438d70
add eax, 2
add ecx, 2
test dl, dl
jne 0x438d50
xor eax, eax
jmp 0x438d75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setl al
test al, al
jne 0x438ce5
mov edx, dword [esp + 0x18]
cmp ebx, dword [edx + 4]
jne 0x438d91
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [ebx + 8]
mov ecx, dword [ecx]
cmp eax, ecx
jb 0x438de2
ja 0x438e9f
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 0xc]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x438dd0
test dl, dl
je 0x438dcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x438dd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x438db0
xor eax, eax
jmp 0x438dd5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setl al
test al, al
je 0x438e9f
mov eax, dword [esp + 0x18]
cmp ebx, dword [eax + 4]
jne 0x438df1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx]
mov eax, dword [esp + 0x38]
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
push eax
push ecx
lea ebp, [edi + 4]
push ebx
mov ecx, ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
call fcn.00432450
push 1
mov ecx, ebp
mov esi, eax
call fcn.004322e0
cmp dword [esp + 0x18], 0
mov dword [ebx + 4], esi
mov edx, dword [esi + 4]
mov dword [edx], esi
jne 0x438e33
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebx + 4]
mov eax, dword [esp + 0x20]
cmp ebp, dword [eax + 4]
jne 0x438e45
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x14]
lea esp, [esp]
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x438e63
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x438e69
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0x14]
cmp dword [ecx + esi*8 + 4], ebx
jne 0x438eba
test ecx, ecx
je 0x438e82
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x438e88
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test esi, esi
mov eax, dword [edi + 0x14]
mov edx, dword [esp + 0x20]
mov dword [eax + esi*8], edx
mov dword [eax + esi*8 + 4], ebp
je 0x438eba
sub esi, 1
jmp 0x438e50
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ebx
mov byte [eax + 8], 0
mov dword [eax], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
mov byte [eax + 8], 1
mov dword [eax], ecx
pop ebx
add esp, 0x20
ret 8