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

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x24]
shr ecx, 2
cmp eax, ecx
push esi
push edi
mov dword [esp + 0x10], ebp
ja 0x438582
mov edx, dword [ebp + 0x14]
test edx, edx
lea esi, [ebp + 0x10]
jne 0x43826c
xor ecx, ecx
jmp 0x438274
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 3
add ecx, 0xffffffff
cmp ecx, eax
ja 0x4382ba
mov ecx, edx
test ecx, ecx
jne 0x438285
xor eax, eax
jmp 0x43828d
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
lea edx, [eax + eax - 3]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 8]
sub esp, 8
mov eax, esp
lea ecx, [ebp + 4]
mov dword [eax], 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x20]
add eax, 2
push eax
mov ecx, esi
call fcn.00435d40
jmp 0x4382c8
mov ecx, dword [ebp + 0x20]
cmp ecx, eax
jae 0x4382c8
lea ecx, [ecx + ecx + 1]
mov dword [ebp + 0x20], ecx
mov edx, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x24]
mov ecx, dword [esi + 4]
shr edx, 1
sub ebx, edx
sub ebx, 1
test ecx, ecx
mov dword [esp + 0x14], ebx
je 0x4382ec
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x4382f2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add ebp, 4
mov eax, dword [esi + 4]
mov edi, dword [eax + ebx*8 + 4]
jne 0x438304
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x20], ebp
mov ebp, edi
lea ebx, [ebx]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x438326
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
lea ecx, [ebx + 1]
cmp ecx, eax
jb 0x43832c
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 0x438578
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x43834a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [edi + 4]
jne 0x438355
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebp + 0x20], 0x10
jb 0x438360
mov eax, dword [ebp + 0xc]
jmp 0x438363
lea eax, [ebp + 0xc]
push 0x1f31d
push eax
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 0x438391
add edx, 0x7fffffff
mov eax, dword [esp + 0x10]
and edx, dword [eax + 0x20]
mov ebx, dword [esp + 0x14]
cmp edx, ebx
jne 0x4383b3
cmp ebp, dword [edi + 4]
jne 0x4383ab
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
jmp 0x438310
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 8]
add edi, 4
cmp ebp, dword [eax + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], ecx
jne 0x4383d8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], edi
mov edx, dword [ebp]
mov dword [esp + 0x1c], edx
je 0x4383eb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x1c], eax
je 0x4384e1
mov edi, ebx
jmp 0x438400
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x438413
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438419
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
cmp dword [ecx + edi*8 + 4], ebp
jne 0x438453
test ecx, ecx
je 0x438432
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438438
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test edi, edi
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax + edi*8], edx
mov dword [eax + edi*8 + 4], ecx
je 0x438453
sub edi, 1
jmp 0x438400
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 8]
add ebx, 4
cmp ebx, ebx
je 0x43846a
push 0
mov ecx, ebx
call fcn.00431090
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x1c]
mov dword [edx], ecx
mov eax, dword [ecx + 4]
mov dword [eax], edi
mov edx, dword [edi + 4]
mov dword [edx], 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 0x43849f
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 + 0x20], eax
mov eax, dword [esi + 4]
add edi, 1
test eax, eax
je 0x4384c6
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 3
cmp edi, ecx
jb 0x4384d0
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 0x438549
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov ebx, dword [eax + 8]
add eax, 4
test ecx, ecx
je 0x43850d
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438513
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
cmp dword [ecx + edi*8 + 4], ebx
jne 0x438549
test ecx, ecx
je 0x43852c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438532
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x20]
mov dword [eax + edi*8], edx
mov dword [eax + edi*8 + 4], ebp
sub edi, 1
cmp dword [esp + 0x14], edi
jb 0x4384f0
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 8]
add eax, 4
cmp dword [esp + 0x18], eax
je 0x43855f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x1c]
cmp ebp, edi
je 0x438578
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x438310
mov eax, dword [esp + 0x10]
add dword [eax + 0x24], 1
mov ebp, eax
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x18], 0x10
jb 0x438591
mov ecx, dword [ecx + 4]
jmp 0x438594
add ecx, 4
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4385a0
sub eax, esi
add eax, ecx
cmp ecx, eax
mov edx, 0x811c9dc5
je 0x4385d2
jmp 0x4385c0
movsx esi, byte [ecx]
imul edx, edx, 0x1000193
add ecx, 1
xor edx, esi
cmp ecx, eax
jne 0x4385c0
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 0x4385f7
add edx, 0x7fffffff
mov eax, dword [ebp + 0x20]
and edx, eax
mov edi, edx
cmp dword [ebp + 0x24], edi
ja 0x43860c
shr eax, 1
or ecx, 0xffffffff
sub ecx, eax
add edi, ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov dword [esp + 0x14], edi
lea esi, [edi + 1]
je 0x438626
mov eax, dword [ebp + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x43862c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0x14]
mov esi, dword [edx + esi*8 + 4]
lea ebx, [ebp + 4]
test ebx, ebx
jne 0x438640
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x438653
mov eax, dword [ebp + 0x18]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438659
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x14]
cmp dword [eax + edi*8 + 4], esi
je 0x4386cd
test ebx, ebx
jne 0x43866c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esi + 4]
cmp esi, dword [ebx + 4]
jne 0x438685
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 4]
jne 0x438685
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x38]
lea ecx, [esi + 8]
push ecx
push edx
call dword [0x49325c]
add esp, 8
test al, al
jne 0x438640
cmp esi, dword [ebx + 4]
jne 0x4386a6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esi + 8]
push ecx
call dword [0x49325c]
add esp, 8
test al, al
je 0x438770
cmp esi, dword [ebx + 4]
jne 0x4386cb
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 4]
push edx
push eax
push esi
lea ecx, [ebp + 4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
call fcn.00431c30
push 1
lea ecx, [ebp + 4]
mov edi, eax
call fcn.00431090
test ebx, ebx
mov dword [esi + 4], edi
mov ecx, dword [edi + 4]
mov dword [ecx], edi
jne 0x438705
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 4]
mov edx, dword [esp + 0x20]
cmp ebx, dword [edx + 4]
jne 0x438717
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov edi, dword [esp + 0x14]
je 0x43872e
mov eax, dword [ebp + 0x18]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438734
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x14]
cmp dword [eax + edi*8 + 4], esi
jne 0x438787
mov ecx, eax
test ecx, ecx
je 0x43874f
mov eax, dword [ebp + 0x18]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x438755
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test edi, edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [eax + edi*8], ecx
mov dword [eax + edi*8 + 4], ebx
je 0x438787
sub edi, 1
mov dword [esp + 0x14], edi
jmp 0x438717
mov eax, dword [esp + 0x34]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [eax + 8], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax + 4], ebx
mov dword [eax], edx
mov byte [eax + 8], 1
pop ebx
add esp, 0x20
ret 8