Function at 0x470f70
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
push esi
push edi
test eax, eax
je 0x470f9b
test ebx, ebx
jne 0x470fa7
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x470f9b
mov dword [eax], 0x12
mov dword [eax + 4], edx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
test ecx, 0x1003
je 0x47108b
test cl, 1
mov edx, 0x4ba9c0
mov esi, fcn.004b3f67
xorps xmm0, xmm0
cmovne edx, esi
movlpd qword [ebp - 0x18], xmm0
cmp dword [eax + 0x34], 0
mov dword [ebp - 8], edx
jb 0x471067
ja 0x470fe7
cmp dword [eax + 0x30], 0
jbe 0x471067
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
nop dword [eax]
push dword [ebp + 0xc]
mov edx, ecx
mov ecx, eax
push ebx
push edi
call fcn.00478460
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47102e
mov eax, dword [ebp + 8]
test al, 2
je 0x471020
push 0x2f
push esi
call fcn.004a72a0
add esp, 8
test eax, eax
je 0x471020
lea esi, [eax + 1]
push esi
push dword [ebp - 4]
call dword [ebp - 8]
add esp, 8
test eax, eax
je 0x471048
mov eax, dword [ebp - 0xc]
add edi, 1
adc ebx, 0
cmp ebx, dword [eax + 0x34]
ja 0x471067
jb 0x471043
cmp edi, dword [eax + 0x30]
jae 0x471067
mov ecx, dword [ebp + 8]
jmp 0x470ff0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47105c
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x470f9b
mov dword [eax], 9
mov dword [eax + 4], 0
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x50]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x471176
cmp dword [ecx + 0xc], 0
ja 0x4710a9
cmp dword [ecx + 8], 0
jbe 0x471154
mov dl, byte [ebx]
xor edi, edi
mov esi, 0x1505
test dl, dl
je 0x4710dc
mov eax, esi
lea ebx, [ebx + 1]
mov ecx, edi
shld edi, esi, 5
shl esi, 5
add esi, eax
movzx eax, dl
cdq
adc edi, ecx
add esi, eax
adc edi, edx
mov dl, byte [ebx]
test dl, dl
jne 0x4710b6
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, esi
xor edx, edx
div dword [ecx]
mov eax, dword [ecx + 0x10]
mov esi, dword [eax + edx*4]
test esi, esi
je 0x471154
nop dword [eax]
mov eax, dword [esi]
mov ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x471114
test dl, dl
je 0x471110
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x471114
add ecx, 2
add eax, 2
test dl, dl
jne 0x4710f4
xor eax, eax
jmp 0x471119
sbb eax, eax
or eax, 1
test eax, eax
je 0x471126
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x4710f0
jmp 0x471154
mov eax, dword [ebp + 8]
test al, 8
je 0x471145
mov ecx, dword [esi + 8]
mov eax, ecx
mov edx, dword [esi + 0xc]
and eax, edx
cmp eax, 0xffffffff
je 0x471154
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
mov eax, ecx
mov edx, dword [esi + 0x14]
and eax, edx
cmp eax, 0xffffffff
jne 0x47118f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47118a
or ecx, 0xffffffff
mov dword [eax], 9
mov dword [eax + 4], 0
or edx, ecx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47118a
mov dword [eax], 0x12
mov dword [eax + 4], 0
or ecx, 0xffffffff
or edx, ecx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret