Function at 0x401220
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403448
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x406008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], 0
lea ebx, [edi + 0x1c]
mov dword [edi], 0x64636261
mov dword [edi + 4], 0x68676665
mov dword [edi + 8], 0x6c6b6a69
mov dword [edi + 0xc], 0x706f6e6d
mov dword [edi + 0x10], 0x74737271
mov dword [edi + 0x14], 0x78777675
mov word [edi + 0x18], 0x7a79
push 0
push ecx
mov dword [ebx], 0
mov ecx, ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
call fcn.00401b90
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x38]
call fcn.00401ac0
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x38]
mov esi, 0x1505
cmovae ecx, dword [ebp - 0x38]
cmovae edx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x28]
cmp edx, ecx
je 0x4012f1
nop
mov eax, esi
shl esi, 5
add esi, eax
movzx eax, byte [edx]
inc edx
add esi, eax
cmp edx, ecx
jne 0x4012e0
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x401329
mov edx, dword [ebp - 0x38]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x40131f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40131f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402710
add esp, 8
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, edx
xor edx, edx
div dword [ebp + 0x18]
movsx eax, byte [edx + ecx]
xor edx, edx
add eax, esi
mov ecx, 0x1a
div ecx
mov ecx, dword [ebx + 0x10]
mov al, byte [edx + edi]
mov edx, dword [ebx + 0x14]
mov byte [ebp - 0x14], al
cmp ecx, edx
jae 0x40137b
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x40136e
mov eax, dword [ebx]
mov dl, byte [ebp - 0x14]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x40138d
push dword [ebp - 0x14]
mov byte [ebp - 0x20], 0
push dword [ebp - 0x20]
push ecx
mov ecx, ebx
call fcn.00402200
cmp dword [ebp + 0x1c], 0x10
lea edi, [ebp + 8]
mov eax, dword [ebp - 0x18]
mov ecx, esi
cmovae edi, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0x18]
shl esi, 5
shr ecx, 3
or esi, ecx
movsx eax, byte [edx + edi]
mov edx, dword [ebp + 8]
xor esi, eax
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x10
jl 0x401331
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x4013fb
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4013f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4013f1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402710
add esp, 8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004026d2
mov esp, ebp
pop ebp
ret 0x18