Function at 0x511390
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x6df14f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x638
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov ebx, 0x40000000
mov dword [esp + 0x64c], edi
mov dword [esp + 0x50], ebx
lea ecx, [esp + 0xb0]
call fcn.0064c690
mov eax, dword [ebp + 8]
lea esi, [esp + 0xb0]
mov byte [esp + 0x64c], 2
call fcn.0064c590
test eax, eax
jne 0x51141f
mov ecx, esi
call fcn.0064c770
xor eax, eax
mov ecx, dword [esp + 0x644]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xb0]
call fcn.0064c8a0
call fcn.006287f0
mov eax, dword [esp + 0xb8]
cmp eax, dword [esp + 0xb0]
jge 0x51185d
lea ecx, [esp + 0xb0]
call fcn.0064ccb0
lea ecx, [esp + 0x214]
push 0x70a557
push ecx
call fcn.00625d90
add esp, 8
test eax, eax
jne 0x51147a
lea eax, [esp + 0xb0]
call fcn.0064c8a0
jmp 0x511849
movsx eax, byte [esp + 0x214]
test eax, eax
lea edx, [esp + 0x214]
mov ecx, 0x1505
je 0x5114ac
inc edx
cmp eax, 0x61
jl 0x5114a0
cmp eax, 0x7a
jg 0x5114a0
sub eax, 0x20
imul ecx, ecx, 0x21
xor ecx, eax
movsx eax, byte [edx]
test eax, eax
jne 0x511492
xor ecx, ebx
and ecx, 0xfffffff
xor ebx, ecx
xor eax, eax
test edi, edi
mov dword [esp + 0x50], ebx
jle 0x5114d0
mov ecx, dword [esp + 0x1c]
cmp ebx, dword [ecx]
je 0x5114d0
inc eax
add ecx, 0x40
cmp eax, edi
jl 0x5114c4
cmp eax, edi
je 0x5114e5
lea eax, [esp + 0xb0]
call fcn.0064c8a0
jmp 0x511849
lea ecx, [esp + 0xb0]
call fcn.0064ccb0
lea ecx, [esp + 0xb0]
call fcn.0064ccb0
lea eax, [esp + 0x214]
call fcn.006263d0
mov esi, 1
cvttss2si edx, xmm0
lea ecx, [esp + 0xb0]
movss dword [esp + 0x614], xmm0
mov dword [esp + 0x618], edx
mov dword [esp + 0x210], esi
mov dword [esp + 0x61c], esi
movss dword [esp + 0x54], xmm0
call fcn.0064ccb0
lea eax, [esp + 0x214]
call fcn.006263d0
cvttss2si eax, xmm0
lea ecx, [esp + 0xb0]
movss dword [esp + 0x614], xmm0
mov dword [esp + 0x618], eax
mov dword [esp + 0x210], esi
mov dword [esp + 0x61c], esi
movss dword [esp + 0x58], xmm0
call fcn.0064ccb0
lea eax, [esp + 0x214]
call fcn.006263d0
cvttss2si ecx, xmm0
mov dword [esp + 0x618], ecx
lea ecx, [esp + 0xb0]
movss dword [esp + 0x614], xmm0
mov dword [esp + 0x210], esi
mov dword [esp + 0x61c], esi
movss dword [esp + 0x5c], xmm0
call fcn.0064ccb0
lea eax, [esp + 0x214]
call fcn.006263d0
cvttss2si edx, xmm0
lea ecx, [esp + 0xb0]
movss dword [esp + 0x614], xmm0
mov dword [esp + 0x618], edx
mov dword [esp + 0x210], esi
mov dword [esp + 0x61c], esi
movss dword [esp + 0x80], xmm0
call fcn.0064ccb0
cmp byte [esp + 0x214], 0x20
lea edx, [esp + 0x214]
jne 0x51161e
mov al, byte [edx + 1]
inc edx
cmp al, 0x20
je 0x511616
mov cl, byte [edx]
inc edx
cmp cl, 0x2d
mov bl, cl
je 0x51162d
cmp cl, 0x2b
jne 0x511630
mov cl, byte [edx]
inc edx
xor eax, eax
cmp cl, 0x30
jl 0x51164e
cmp cl, 0x39
jg 0x51164e
movsx ecx, cl
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x30]
mov cl, byte [edx]
inc edx
cmp cl, 0x30
jge 0x511637
cmp bl, 0x2d
jne 0x511655
neg eax
xor edx, edx
test eax, eax
setne dl
cvtsi2ss xmm1, eax
mov dword [esp + 0x618], eax
mov al, byte [esp + 0x86]
lea ecx, [esp + 0xb0]
movss dword [esp + 0x614], xmm1
mov dword [esp + 0x210], esi
shl edx, 1
xor dl, al
mov dword [esp + 0x61c], 0
and edx, 2
xor word [esp + 0x86], dx
call fcn.0064ccb0
cmp byte [esp + 0x214], 0x20
lea edx, [esp + 0x214]
jne 0x5116bd
mov al, byte [edx + 1]
inc edx
cmp al, 0x20
je 0x5116b5
mov al, byte [edx]
inc edx
cmp al, 0x2d
mov bl, al
je 0x5116ca
cmp al, 0x2b
jne 0x5116cd
mov al, byte [edx]
inc edx
xor ecx, ecx
cmp al, 0x30
jl 0x5116e8
cmp al, 0x39
jg 0x5116e8
movsx eax, al
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*2 - 0x30]
mov al, byte [edx]
inc edx
cmp al, 0x30
jge 0x5116d3
cmp bl, 0x2d
jne 0x5116ef
neg ecx
mov al, byte [esp + 0x86]
xor edx, edx
test ecx, ecx
setne dl
xor dl, al
cvtsi2ss xmm1, ecx
movss dword [esp + 0x614], xmm1
movss xmm1, dword [esp + 0x58]
mov dword [esp + 0x618], ecx
mov dword [esp + 0x210], esi
mov dword [esp + 0x61c], 0
and edx, esi
xor word [esp + 0x86], dx
ucomiss xmm1, dword [esp + 0x54]
lahf
test ah, 0x44
mov word [esp + 0x84], di
jp 0x511756
addss xmm1, dword [0x7389bc]
movss dword [esp + 0x58], xmm1
ucomiss xmm0, dword [esp + 0x5c]
lahf
test ah, 0x44
jp 0x511772
addss xmm0, dword [0x7389bc]
movss dword [esp + 0x80], xmm0
comiss xmm1, xmm0
jbe 0x51177a
movaps xmm0, xmm1
movss xmm1, dword [0x738aac]
comiss xmm0, xmm1
ja 0x51178a
movaps xmm0, xmm1
xorps xmm1, xmm1
movaps xmm2, xmm1
subss xmm2, xmm0
subss xmm1, xmm0
movss dword [esp + 0x40], xmm2
mov eax, dword [esp + 0x40]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x4c]
movss dword [esp + 0x44], xmm1
mov ecx, dword [esp + 0x44]
movss dword [esp + 0x48], xmm1
mov edx, dword [esp + 0x48]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
movss dword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
movss dword [esp + 0x34], xmm0
mov edx, dword [esp + 0x34]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x3c]
movss dword [esp + 0x38], xmm0
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], eax
lea edx, [esp + 0x50]
mov dword [esp + 0xac], ecx
push edx
lea eax, [esp + 0x20]
mov ecx, 8
lea esi, [esp + 0x94]
lea edi, [esp + 0x64]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00512960
lea eax, [esp + 0xb0]
call fcn.0064c8a0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0xb8]
cmp ecx, dword [esp + 0xb0]
jl 0x511444
lea esi, [esp + 0xb0]
call fcn.0064c7f0
mov edx, edi
shl edx, 6
add edx, 0x10
push edx
call fcn.00685d18
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x64c], 3
je 0x5118a6
push fcn.00668d30
push 0x511360
push edi
lea esi, [eax + 0x10]
push 0x40
push esi
mov dword [eax], edi
call fcn.00686002
mov ecx, esi
jmp 0x5118a8
xor ecx, ecx
test edi, edi
mov dword [esp + 0x10], ecx
jle 0x511941
mov esi, dword [esp + 0x1c]
lea edx, [esi + 0xc]
sub esi, ecx
lea eax, [ecx + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
jmp 0x5118d0
mov esi, dword [esp + 0x14]
mov edi, edi
mov ecx, dword [edx - 0xc]
mov dword [eax - 4], ecx
mov ecx, dword [esi + eax]
mov dword [eax], ecx
mov ecx, dword [edx - 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx]
mov dword [eax + 8], ecx
lea esi, [edx + 4]
lea edi, [eax + 0xc]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0x24]
mov dword [eax + 0x2c], ecx
mov cx, word [edx + 0x28]
mov word [eax + 0x30], cx
mov bl, byte [edx + 0x2a]
xor ecx, ecx
mov cl, byte [eax + 0x32]
xor cl, bl
xor ebx, ebx
add edx, 0x40
add eax, 0x40
and ecx, 1
xor word [eax - 0xe], cx
mov bl, byte [edx - 0x16]
xor ecx, ecx
mov cx, word [eax - 0xe]
xor bl, cl
and ebx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x18]
mov word [eax - 0xe], bx
dec ecx
mov dword [esp + 0x18], ecx
jne 0x5118ca
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
push 0x40
push edi
push ecx
mov eax, str.P_PROFILE
mov ecx, 0x91a408
call fcn.0050e9f0
mov eax, dword [esp + 0xb4]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
je 0x5119c3
mov esi, eax
mov eax, dword [0x80edc8]
test eax, eax
jne 0x51198b
push 0x7c2190
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x80edc8], 1
push 0x7c2190
call ebx
push 0x80ed7c
call edi
push esi
call fcn.0068662d
add esp, 4
push 0x80ed7c
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0x7c2190
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0xb4], 0
mov esi, dword [esp + 0x630]
test esi, esi
je 0x511a24
mov eax, dword [0x80edc8]
test eax, eax
jne 0x5119ec
push 0x7c2190
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x80edc8], 1
push 0x7c2190
call ebx
push 0x80ed7c
call edi
push esi
call fcn.0068662d
add esp, 4
push 0x80ed7c
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0x7c2190
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x630], 0
or eax, 0xffffffff
mov dword [esp + 0x628], eax
mov dword [esp + 0x62c], eax
mov dword [esp + 0x64c], eax
cmp dword [esp + 0x28], 2
mov dword [esp + 0x624], 0
je 0x511a73
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x511a73
mov edx, dword [eax - 0x10]
lea esi, [eax - 0x10]
push fcn.00668d30
push edx
push 0x40
push eax
call fcn.00685fa2
push esi
call fcn.00685b4c
add esp, 4
mov ecx, dword [esp + 0x644]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret