Function at 0x438ee0
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 0x439212
mov edx, dword [edi + 0x14]
test edx, edx
lea esi, [edi + 0x10]
jne 0x438f0c
xor ecx, ecx
jmp 0x438f14
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 3
add ecx, 0xffffffff
cmp ecx, eax
ja 0x438f5a
mov ecx, edx
test ecx, ecx
jne 0x438f25
xor eax, eax
jmp 0x438f2d
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 0x438f68
mov ecx, dword [edi + 0x20]
cmp ecx, eax
jae 0x438f68
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 0x438f8c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x438f92
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 0x438fa4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x438fbe
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
lea ecx, [ebx + 1]
cmp ecx, eax
jb 0x438fc4
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 0x439208
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x438fe2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [edi + 4]
jne 0x438fed
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 0x43901e
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 0x43904b
cmp ebp, dword [edi + 4]
jne 0x439043
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
jmp 0x438fa8
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 0x43906e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x20], edi
mov eax, dword [ebp]
mov dword [esp + 0x24], eax
je 0x439081
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], ecx
je 0x439174
mov edi, ebx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4390a4
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x4390aa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 4]
cmp dword [edx + edi*8 + 4], ebp
jne 0x4390e6
mov ecx, edx
test ecx, ecx
je 0x4390c5
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x4390cb
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 0x4390e6
sub edi, 1
jmp 0x439091
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 8]
add ebx, 4
cmp ebx, ebx
je 0x4390fd
push 0
mov ecx, ebx
call fcn.00432370
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 0x439132
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 0x439159
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 3
cmp edi, ecx
jb 0x439163
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 0x4391d9
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov ebx, dword [eax + 8]
add eax, 4
test ecx, ecx
je 0x43919d
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x4391a3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
cmp dword [ecx + edi*8 + 4], ebx
jne 0x4391d9
test ecx, ecx
je 0x4391bc
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x4391c2
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 0x439180
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 8]
add eax, 4
cmp dword [esp + 0x20], eax
je 0x4391ef
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x24]
cmp ebp, edi
je 0x439208
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x438fa8
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 0x439220
sub eax, esi
add eax, ecx
cmp ecx, eax
mov edx, 0x811c9dc5
je 0x439252
jmp 0x439240
movsx esi, byte [ecx]
imul edx, edx, 0x1000193
add ecx, 1
xor edx, esi
cmp ecx, eax
jne 0x439240
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 0x439277
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 0x439298
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 0x4392b2
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4392b8
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 0x4392cc
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 0x4392e8
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp ebp, eax
jb 0x4392ee
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0x14]
cmp dword [edx + ebp*8 + 4], ebx
je 0x4393e3
cmp dword [esp + 0x18], 0
jne 0x439308
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 0x43931a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
cmp ebx, dword [ecx + 4]
jne 0x439329
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 0x4392d5
ja 0x439372
mov ecx, dword [ebx + 0xc]
mov eax, dword [edx + 4]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x439360
test dl, dl
je 0x43935c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x439360
add eax, 2
add ecx, 2
test dl, dl
jne 0x439340
xor eax, eax
jmp 0x439365
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setl al
test al, al
jne 0x4392d5
mov edx, dword [esp + 0x18]
cmp ebx, dword [edx + 4]
jne 0x439381
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 0x4393d2
ja 0x43948f
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 0x4393c0
test dl, dl
je 0x4393bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4393c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4393a0
xor eax, eax
jmp 0x4393c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setl al
test al, al
je 0x43948f
mov eax, dword [esp + 0x18]
cmp ebx, dword [eax + 4]
jne 0x4393e1
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.00432400
push 1
mov ecx, ebp
mov esi, eax
call fcn.00432370
cmp dword [esp + 0x18], 0
mov dword [ebx + 4], esi
mov edx, dword [esi + 4]
mov dword [edx], esi
jne 0x439423
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 0x439435
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 0x439453
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x439459
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0x14]
cmp dword [ecx + esi*8 + 4], ebx
jne 0x4394aa
test ecx, ecx
je 0x439472
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x439478
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 0x4394aa
sub esi, 1
jmp 0x439440
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