Function at 0x405b00
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51add8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x572088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov eax, dword [0x58abec]
cmp dword [eax - 0xc], 0
jl 0x405cda
push str.skey
push eax
call fcn.004eafde
mov esi, eax
add esp, 8
test esi, esi
je 0x405cd7
mov eax, dword [0x58abec]
sub esi, eax
cmp esi, 0xffffffff
je 0x405cd7
add esi, 5
js 0x405b98
cmp esi, dword [eax - 0xc]
jg 0x405b98
add eax, esi
push 0x54fea0
push eax
call fcn.004eafde
mov ecx, eax
add esp, 8
mov eax, dword [0x58abec]
test ecx, ecx
je 0x405b98
sub ecx, eax
cmp ecx, 0xffffffff
jne 0x405b9b
mov ecx, dword [eax - 0xc]
sub ecx, esi
lea eax, [ebp - 0x34]
push ecx
push esi
push eax
mov ecx, 0x58abec
call fcn.00415bb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x34]
xorps xmm0, xmm0
push esi
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [0x524244]
mov dl, byte [ebp - 0x20]
mov edi, 0x1505
test dl, dl
je 0x405bef
lea ecx, [ebp - 0x20]
mov eax, edi
lea ecx, [ecx + 1]
shl edi, 5
add edi, eax
movsx eax, dl
add edi, eax
mov al, byte [ecx]
mov dl, al
test al, al
jne 0x405bd8
mov byte [ebp - 4], 1
call fcn.00401890
mov ecx, eax
test ecx, ecx
je 0x405d33
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
and edi, 0x7fffffff
mov byte [ebp - 4], 2
push edi
lea eax, [ebp - 0x28]
push 0x54ff50
push eax
call fcn.0041b3a0
mov edi, dword [ebp - 0x28]
add esp, 0xc
add edi, 0xfffffff0
mov dword [ebp - 0x30], edi
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
lea edx, [edi + 0xc]
mov ecx, eax
mov eax, dword [edx]
shr eax, 0x1f
mov dword [ebp - 0x2c], edx
test al, al
jne 0x405c57
cmp ecx, dword [edi]
jne 0x405c57
lock inc dword [edx]
jmp 0x405c8f
mov eax, dword [ecx]
push 1
push dword [edi + 4]
mov eax, dword [eax]
call eax
mov ecx, eax
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x405d3d
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea eax, [edi + 0x10]
mov edx, dword [edi + 4]
add ecx, 0x10
inc edx
push edx
push eax
call fcn.00401420
mov edi, dword [ebp - 0x38]
add esp, 8
mov edx, dword [ebp - 0x2c]
lea eax, [edi + 0x10]
mov edi, dword [ebp - 0x24]
mov dword [edi], eax
or ecx, 0xffffffff
mov byte [ebp - 4], 3
mov eax, ecx
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x405cb7
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 4
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x405cd3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x405d18
mov esi, dword [ebp - 0x24]
call fcn.00401890
mov ecx, eax
test ecx, ecx
je 0x405d42
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x54fb6e
mov ecx, esi
mov dword [ebp - 4], 5
call fcn.00417c90
test al, al
jne 0x405d16
push 0
push 0x54fb6e
mov ecx, esi
call fcn.004195e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00479fb5
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401560
call fcn.004195d0
push 0x80004005
call fcn.00401560
int3