Function at 0x4056d0
Capabilities:
Hash data using djb2

Disassembly:
push ecx
mov eax, ecx
mov edx, 0x1505
push ebx
push ebp
push esi
movsx esi, byte [eax]
mov ecx, 1
mov dword [esp + 0xc], eax
push edi
mov edi, eax
test esi, esi
je 0x405708
mov edi, edi
mov eax, edx
lea edi, [edi + 1]
shl edx, 5
add edx, esi
movsx esi, byte [edi]
add edx, eax
test esi, esi
jne 0x4056f0
test edx, edx
cmove edx, ecx
mov ebx, dword [0x483280]
mov eax, edx
xor edx, edx
div ebx
mov ebp, edx
test ebp, ebp
cmove ebp, ecx
mov ecx, dword [0x47eff4]
mov esi, ebp
mov eax, dword [ecx + ebp*8]
test eax, eax
je 0x4057e8
cmp eax, ebp
jne 0x405775
mov eax, dword [ecx + ebp*8 + 4]
test eax, eax
mov ecx, str._NULL_
cmovne ecx, eax
mov eax, dword [esp + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405764
test dl, dl
je 0x405760
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405764
add eax, 2
add ecx, 2
test dl, dl
jne 0x405744
xor eax, eax
jmp 0x405769
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405775
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
lea ecx, [ebx - 2]
mov eax, ebp
xor edx, edx
div ecx
lea edi, [edx + 1]
cmp esi, edi
ja 0x40578d
mov eax, ebx
sub eax, edi
add esi, eax
jmp 0x40578f
sub esi, edi
cmp esi, ebp
je 0x4057e8
mov eax, dword [0x47eff4]
mov ebx, dword [eax + esi*8]
cmp ebx, ebp
jne 0x4057de
mov eax, dword [eax + esi*8 + 4]
mov ecx, str._NULL_
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4057d1
test dl, dl
je 0x4057cd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4057d1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4057b1
xor eax, eax
jmp 0x4057d6
sbb eax, eax
or eax, 1
test eax, eax
je 0x4058f8
test ebx, ebx
mov ebx, dword [0x483280]
jne 0x405781
cmp dword [0x483268], ebx
jb 0x40580f
push ebx
push str.hash_table_is_full___d_entries_
push str.htab_hash
push 3
push 0
call fcn.004023f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xffffffffffffffff
push dword [0x47f058]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405833
cmp eax, 0x80
je 0x405833
call fcn.0040bc63
mov dword [eax], 0x16
mov eax, dword [0x47eff4]
lea edi, [eax + esi*8]
mov eax, dword [edi + 4]
test eax, eax
je 0x405852
push eax
call fcn.0040b5c0
add esp, 4
mov dword [edi + 4], 0
mov ebx, dword [esp + 0x10]
mov ecx, ebx
mov dword [edi], ebp
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405860
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 1
call fcn.0040b5f8
mov edx, eax
add esp, 8
mov dword [edi + 4], edx
test edx, edx
jne 0x4058b8
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 3
push eax
call fcn.004023f0
add esp, 0x10
push dword [0x47f058]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x4058b0
call fcn.0040bc63
mov dword [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, ebx
lea edi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4058c0
sub ecx, edi
lea eax, [ecx + 1]
push eax
push ebx
push edx
call fcn.0040ac30
inc dword [0x483268]
add esp, 0xc
push dword [0x47f058]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x4058f8
call fcn.0040bc63
mov dword [eax], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret