Function at 0x437270
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 0x437596
mov edx, dword [edi + 0x14]
test edx, edx
lea esi, [edi + 0x10]
jne 0x43729c
xor ecx, ecx
jmp 0x4372a4
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 3
add ecx, 0xffffffff
cmp ecx, eax
ja 0x4372ea
mov ecx, edx
test ecx, ecx
jne 0x4372b5
xor eax, eax
jmp 0x4372bd
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 0x4372f8
mov ecx, dword [edi + 0x20]
cmp ecx, eax
jae 0x4372f8
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 0x43731c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x437322
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 0x437334
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43734e
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
lea ecx, [ebx + 1]
cmp ecx, eax
jb 0x437354
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 0x43758c
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x437372
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [edi + 4]
jne 0x43737d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 8]
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 0x4373ae
add edx, 0x7fffffff
mov eax, dword [esp + 0x10]
and edx, dword [eax + 0x20]
mov ebx, dword [esp + 0x14]
cmp edx, ebx
jne 0x4373d0
cmp ebp, dword [edi + 4]
jne 0x4373c8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
jmp 0x437338
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, 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], ecx
jne 0x4373f5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x20], edi
mov edx, dword [ebp]
mov dword [esp + 0x24], edx
je 0x437408
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x24], eax
je 0x4374f9
mov edi, ebx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43742b
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x437431
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
cmp dword [ecx + edi*8 + 4], ebp
jne 0x43746b
test ecx, ecx
je 0x43744a
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x437450
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test edi, edi
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [eax + edi*8], edx
mov dword [eax + edi*8 + 4], ecx
je 0x43746b
sub edi, 1
jmp 0x437418
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 8]
add ebx, 4
cmp ebx, ebx
je 0x437482
push 0
mov ecx, ebx
call fcn.004623c0
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x24]
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 0x4374b7
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 0x4374de
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 3
cmp edi, ecx
jb 0x4374e8
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 0x43755d
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov ebx, dword [eax + 8]
add eax, 4
test ecx, ecx
je 0x437521
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x437527
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
cmp dword [ecx + edi*8 + 4], ebx
jne 0x43755d
test ecx, ecx
je 0x437540
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp edi, eax
jb 0x437546
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 0x437504
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 8]
add eax, 4
cmp dword [esp + 0x20], eax
je 0x437573
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x24]
cmp ebp, edi
je 0x43758c
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x437338
mov eax, dword [esp + 0x10]
add dword [eax + 0x24], 1
mov edi, eax
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4375a1
sub eax, esi
add eax, ecx
cmp ecx, eax
mov edx, 0x811c9dc5
je 0x4375d2
jmp 0x4375c0
movsx esi, byte [ecx]
imul edx, edx, 0x1000193
add ecx, 1
xor edx, esi
cmp ecx, eax
jne 0x4375c0
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 0x4375f7
add edx, 0x7fffffff
mov eax, dword [edi + 0x20]
and edx, eax
mov ebx, edx
cmp dword [edi + 0x24], ebx
ja 0x43760c
shr eax, 1
or edx, 0xffffffff
sub edx, eax
add ebx, edx
mov ecx, dword [edi + 0x14]
test ecx, ecx
mov dword [esp + 0x14], ebx
lea esi, [ebx + 1]
je 0x437626
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x43762c
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 0x437640
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [edi + 4]
mov ebp, esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x18], eax
lea ecx, [ecx]
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x437663
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x437669
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0x14]
cmp dword [edx + ebx*8 + 4], ebp
je 0x43772c
cmp dword [esp + 0x18], 0
jne 0x437683
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp + 4]
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 4]
jne 0x437695
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
cmp ebp, dword [ecx + 4]
jne 0x4376a4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4376d0
test dl, dl
je 0x4376cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4376d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4376b0
xor eax, eax
jmp 0x4376d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x437650
mov ebx, dword [esp + 0x18]
cmp ebp, dword [ebx + 4]
jne 0x4376ec
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x437711
test dl, dl
je 0x43770d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x437711
add eax, 2
add ecx, 2
test dl, dl
jne 0x4376f1
xor eax, eax
jmp 0x437716
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jge 0x4377c9
cmp ebp, dword [ebx + 4]
jne 0x437729
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebp]
mov eax, dword [ebp + 4]
mov ebx, dword [esp + 0x18]
mov edx, esi
push edx
push eax
push ebp
lea ecx, [edi + 4]
mov dword [esp + 0x30], ebp
call fcn.00462450
push 1
lea ecx, [edi + 4]
mov esi, eax
call fcn.004623c0
test ebx, ebx
mov dword [ebp + 4], esi
mov ecx, dword [esi + 4]
mov dword [ecx], esi
jne 0x437762
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 4]
cmp eax, dword [ebx + 4]
mov dword [esp + 0x24], eax
jne 0x437774
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x14]
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x43778b
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x437791
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 0x14]
cmp dword [edx + esi*8 + 4], ebp
jne 0x4377e0
mov ecx, edx
test ecx, ecx
je 0x4377ac
mov eax, dword [edi + 0x18]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x4377b2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test esi, esi
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [eax + esi*8], ebx
mov dword [eax + esi*8 + 4], ecx
je 0x4377e0
sub esi, 1
jmp 0x437778
mov eax, dword [esp + 0x34]
mov dword [eax + 4], ebp
mov byte [eax + 8], 0
mov dword [eax], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], edx
mov byte [eax + 8], 1
pop ebx
add esp, 0x20
ret 8