Function at 0x4036e0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, 0xffffffff
cmp dword [esp + 0x28], 0
je 0x403851
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x403851
cmp dword [esp + 0x30], 0
je 0x403851
push esi
call fcn.004096b0
add esp, 4
test eax, eax
je 0x40374a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x403751
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x403730
jmp 0x403753
mov ebx, 0x1505
jmp 0x403753
mov ebx, ecx
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 0x20]
test esi, esi
je 0x4037f3
mov dword [esp], eax
mov eax, esi
xor eax, 1
mov edx, esi
and edx, 0xfffffffe
add edx, edx
sub edx, eax
and edx, ebx
mov dword [esp + 0xc], edx
lea eax, [esi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
xor edi, edi
jmp 0x403795
inc edi
cmp esi, edi
je 0x4037f3
mov eax, edi
mov ebp, dword [esp + 0xc]
and eax, ebp
mov edx, edi
xor edx, ebp
lea ebp, [edx + eax*2]
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x4037f8
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x403790
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.004096b0
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x403790
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.004096e0
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x403790
mov eax, 0xffffffff
jmp 0x403851
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jae 0x40383d
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x30]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
jmp 0x403851
call fcn.00403920
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x2c]
je 0x403859
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
call fcn.004096b0
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + 0x20]
test esi, esi
je 0x40390c
mov eax, esi
xor eax, 1
mov edx, esi
and edx, 0xfffffffe
add edx, edx
sub edx, eax
and edx, ebx
mov dword [esp + 0xc], edx
lea eax, [esi - 1]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
xor edi, edi
jmp 0x4038a5
inc edi
cmp esi, edi
je 0x40390c
mov eax, edi
mov ebp, dword [esp + 0xc]
and eax, ebp
mov edx, edi
xor edx, ebp
lea ebp, [edx + eax*2]
and ebp, dword [esp + 8]
mov eax, dword [esp + 4]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x403800
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x4038a0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x10], eax
push eax
call fcn.004096b0
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x4038a0
push dword [esp]
push dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.004096e0
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x4038a0
jmp 0x403800
mov ebp, 0xffffffff
jmp 0x403800