Function at 0x40d0d0
Capabilities:
Create thread
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x4b000c]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x7a4014], 0
push esi
push edi
jbe 0x40d0fa
call fcn.0040d990
call fcn.0046a420
mov esi, 0x57e
mov ecx, esi
call fcn.0046a580
mov dword [esp + 8], eax
mov edi, eax
test eax, eax
je 0x40d2a0
mov edx, 0x2006
nop
cmp word [edi + 4], si
jne 0x40d254
movzx eax, word [edi + 6]
mov ecx, eax
cmp ax, dx
je 0x40d13f
mov edx, 0x2007
cmp ax, dx
jne 0x40d191
push 0x828
call fcn.0046b355
add esp, 4
mov esi, eax
push 0x828
push 0
push esi
call fcn.0046e200
add esp, 0xc
mov ecx, 1
lock xadd dword [0x7a4008], ecx
inc ecx
dec ecx
push ecx
push edi
mov ecx, esi
call fcn.00408930
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
add eax, 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040e1f0
movzx ecx, word [edi + 6]
movzx eax, cx
mov edx, 0x2009
mov ecx, eax
cmp ax, dx
jne 0x40d1f2
push 0x828
call fcn.0046b355
add esp, 4
mov esi, eax
push 0x828
push 0
push esi
call fcn.0046e200
add esp, 0xc
mov ecx, 1
lock xadd dword [0x7a4008], ecx
inc ecx
dec ecx
push ecx
push edi
mov ecx, esi
call fcn.00408930
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
add eax, 4
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040e1f0
movzx ecx, word [edi + 6]
mov eax, 0x200e
cmp cx, ax
jne 0x40d24a
push 0x828
call fcn.0046b355
add esp, 4
mov esi, eax
push 0x828
push 0
push esi
call fcn.0046e200
add esp, 0xc
mov ecx, 1
lock xadd dword [0x7a4008], ecx
inc ecx
dec ecx
push ecx
push edi
mov ecx, esi
call fcn.00408930
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040e1f0
mov edx, 0x2006
mov esi, 0x57e
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x40d120
mov edi, dword [esp + 8]
push dword [edi]
mov esi, dword [edi + 0x20]
call fcn.00470e61
add esp, 4
push dword [edi + 8]
call fcn.00470e61
add esp, 4
push dword [edi + 0x10]
call fcn.00470e61
add esp, 4
push dword [edi + 0x14]
call fcn.00470e61
add esp, 4
push edi
call fcn.00470e61
add esp, 4
mov edi, esi
test esi, esi
jne 0x40d263
mov ecx, 0x54c
call fcn.0046a580
mov edi, eax
mov dword [esp + 0x10], edi
mov esi, edi
mov dword [esp + 8], edi
test edi, edi
je 0x40d3ae
mov eax, 0x54c
lea edi, [eax + 0x78]
cmp word [esi + 4], ax
jne 0x40d35e
push str.DS4_n
call fcn.004014d0
movzx eax, word [esi + 6]
add esp, 4
cmp ax, di
je 0x40d304
mov ecx, 0x9cc
cmp ax, cx
je 0x40d304
mov ecx, 0xba0
cmp ax, cx
je 0x40d304
mov ecx, 0x81f
cmp ax, cx
jne 0x40d359
push 0x828
call fcn.0046b355
add esp, 4
mov esi, eax
push 0x828
push 0
push esi
call fcn.0046e200
add esp, 0xc
mov ecx, 1
lock xadd dword [0x7a4008], ecx
inc ecx
dec ecx
push ecx
push dword [esp + 0xc]
mov ecx, esi
call fcn.00408930
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040e1f0
mov esi, dword [esp + 8]
mov eax, 0x54c
mov esi, dword [esi + 0x20]
mov dword [esp + 8], esi
test esi, esi
jne 0x40d2c6
mov edi, dword [esp + 0x10]
push dword [edi]
mov esi, dword [edi + 0x20]
call fcn.00470e61
add esp, 4
push dword [edi + 8]
call fcn.00470e61
add esp, 4
push dword [edi + 0x10]
call fcn.00470e61
add esp, 4
push dword [edi + 0x14]
call fcn.00470e61
add esp, 4
push edi
call fcn.00470e61
add esp, 4
mov edi, esi
test esi, esi
jne 0x40d371
mov ecx, 0xc12
call fcn.0046a580
mov dword [esp + 0xc], eax
mov edi, eax
test eax, eax
je 0x40d61d
mov esi, 0xe20
nop dword [eax + eax]
push str.Brook_DS4_n
call fcn.004014d0
movzx eax, word [edi + 6]
add esp, 4
cmp ax, si
jne 0x40d439
push 0x828
call fcn.0046b355
add esp, 4
mov esi, eax
push 0x828
push 0
push esi
call fcn.0046e200
add esp, 0xc
mov ecx, 1
lock xadd dword [0x7a4008], ecx
inc ecx
dec ecx
push ecx
push edi
mov ecx, esi
call fcn.00408930
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040e1f0
jmp 0x40d5ca
cmp dword [edi + 0x14], 0
je 0x40d5cf
mov ecx, eax
movzx eax, cl
xor eax, 0x811c9dc5
mov dword [esp + 0x10], ecx
imul eax, eax, 0x1000193
shr ecx, 8
xor eax, ecx
imul eax, eax, 0x3ee6b34b
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040e590
mov ecx, dword [0x7a4010]
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
cmp ecx, dword [0x7a4010]
jne 0x40d5cf
push 0x828
call fcn.0046b355
add esp, 4
mov esi, eax
push 0x828
push 0
push esi
call fcn.0046e200
movzx ecx, word [edi + 6]
add esp, 0xc
push ecx
push edi
mov ecx, esi
call fcn.00408930
mov esi, eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
push ecx
push eax
call fcn.0040e1f0
test esi, esi
je 0x40d5ca
push 0xb
push str.DualShock_4
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0xf
call fcn.0040dfb0
add esi, 0xc
lea eax, [esp + 0x70]
cmp esi, eax
je 0x40d575
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x40d545
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x40d53b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d989
mov eax, edx
push ecx
push eax
call fcn.0046b385
add esp, 8
movups xmm0, xmmword [esp + 0x70]
mov dword [esi + 0x10], 0
mov edx, 0xf
mov dword [esi + 0x14], 0xf
movups xmmword [esi], xmm0
mov byte [esp + 0x70], 0
movq xmm0, qword [esp + 0x80]
movq qword [esi + 0x10], xmm0
jmp 0x40d57c
mov edx, dword [esp + 0x84]
cmp edx, 0x10
jb 0x40d5ae
mov ecx, dword [esp + 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d5a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d989
push edx
push ecx
call fcn.0046b385
add esp, 8
mov eax, dword [esp + 8]
mov dword [eax + 0x28], 3
mov dword [eax + 0x1bc], 1
mov byte [eax + 0x1c0], 1
mov esi, 0xe20
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x40d3d0
mov edi, dword [esp + 0xc]
nop
push dword [edi]
mov esi, dword [edi + 0x20]
call fcn.00470e61
add esp, 4
push dword [edi + 8]
call fcn.00470e61
add esp, 4
push dword [edi + 0x10]
call fcn.00470e61
add esp, 4
push dword [edi + 0x14]
call fcn.00470e61
add esp, 4
push edi
call fcn.00470e61
add esp, 4
mov edi, esi
test esi, esi
jne 0x40d5e0
mov ecx, 0x54c
call fcn.0046a580
mov edi, eax
mov dword [esp + 0xc], edi
mov esi, edi
mov dword [esp + 8], edi
test edi, edi
je 0x40d70d
mov eax, 0x54c
mov edi, 0xce6
cmp word [esi + 4], ax
jne 0x40d6b8
push 0x4a60e0
call fcn.004014d0
add esp, 4
cmp word [esi + 6], di
jne 0x40d6b3
push 0x828
call fcn.0046b355
add esp, 4
mov esi, eax
push 0x828
push 0
push esi
call fcn.0046e200
add esp, 0xc
mov ecx, 1
lock xadd dword [0x7a4008], ecx
inc ecx
dec ecx
push ecx
push dword [esp + 0xc]
mov ecx, esi
call fcn.00408930
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
add eax, 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040e1f0
mov esi, dword [esp + 8]
mov eax, 0x54c
mov esi, dword [esi + 0x20]
mov dword [esp + 8], esi
test esi, esi
jne 0x40d645
mov edi, dword [esp + 0xc]
nop word [eax + eax]
push dword [edi]
mov esi, dword [edi + 0x20]
call fcn.00470e61
add esp, 4
push dword [edi + 8]
call fcn.00470e61
add esp, 4
push dword [edi + 0x10]
call fcn.00470e61
add esp, 4
push dword [edi + 0x14]
call fcn.00470e61
add esp, 4
push edi
call fcn.00470e61
add esp, 4
mov edi, esi
test esi, esi
jne 0x40d6d0
mov edi, dword [0x7a4010]
mov dword [esp + 0x10], edi
mov esi, dword [edi]
cmp esi, edi
je 0x40d897
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0x1bc]
cmp eax, 1
jne 0x40d845
cmp byte [edi + 0x1c0], 0
jne 0x40d748
mov ecx, edi
call fcn.0040b190
jmp 0x40d861
mov eax, dword [edi]
lea edx, [esp + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0x8b], 0
movlpd qword [esp + 0x73], xmm0
movlpd qword [esp + 0x7b], xmm0
movlpd qword [esp + 0x83], xmm0
mov word [esp + 0x70], 0xf705
mov byte [esp + 0x72], 4
mov dword [eax + 4], 1
mov ecx, dword [edi]
push 0x1f
call fcn.0046ab70
add esp, 4
lea eax, [edi + 0x340]
push 0x4c
push 0
push eax
call fcn.0046e200
xorps xmm0, xmm0
mov eax, 0xff
movups xmmword [edi + 0x39e], xmm0
add esp, 0xc
movq qword [edi + 0x3ae], xmm0
movups xmmword [edi + 0x3b6], xmm0
movups xmmword [edi + 0x3c6], xmm0
mov dword [edi + 0x3d6], 0
mov word [edi + 0x3da], 0
movq qword [edi + 0x3e8], xmm0
mov dword [edi + 0x3f0], 0
movq qword [edi + 0x400], xmm0
mov dword [edi + 0x408], 0
mov dword [edi + 0x41e], 0x7f0000
mov dword [edi + 0x418], 0x7f0000
mov dword [edi + 0x412], 0x7f0000
mov dword [edi + 0x40c], 0x7f0000
mov word [edi + 0x422], ax
mov word [edi + 0x41c], ax
mov word [edi + 0x416], ax
mov word [edi + 0x410], ax
jmp 0x40d861
cmp eax, 2
je 0x40d861
cmp byte [edi + 0x1c0], 0
mov ecx, edi
je 0x40d85c
call fcn.0040ade0
jmp 0x40d861
call fcn.0040b050
lea ecx, [esp + 0x20]
call fcn.00407b90
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x24], 0
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [esp + 0x10]
jne 0x40d721
mov edi, dword [0x7a4010]
mov esi, dword [edi]
mov dword [esp + 8], 0
cmp esi, edi
je 0x40d8f9
nop word [eax + eax]
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x1bc], 0
jne 0x40d8eb
push 0x40
lea eax, [esp + 0x34]
push 0
push eax
call fcn.0046e200
mov al, byte [esp + 0x14]
add esp, 8
inc al
mov byte [esp + 0x34], al
lea eax, [esp + 0x34]
push eax
push 0x30
push ecx
mov ecx, dword [esi + 0xc]
call fcn.0040a190
inc dword [esp + 8]
mov eax, dword [esi]
mov esi, eax
cmp eax, edi
jne 0x40d8b0
mov edi, dword [0x7a4010]
mov esi, dword [edi]
cmp esi, edi
je 0x40d962
nop
mov eax, dword [esi + 0xc]
push 8
mov dword [esp + 0x10], eax
call fcn.0046b355
add esp, 4
mov dword [esp + 8], eax
push 8
call fcn.0046b355
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [eax], ecx
mov ecx, dword [esp + 8]
add ecx, 4
mov dword [eax + 4], 0x40cc80
push ecx
push 0
push eax
push 0x40e600
push 0
push 0
call fcn.0047619c
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40d97b
mov eax, dword [esp + 0xc]
mov dword [eax + 0x1e0], ecx
mov esi, dword [esi]
cmp esi, edi
jne 0x40d900
mov ecx, dword [esp + 0x9c]
mov eax, dword [0x7a4014]
pop edi
pop esi
xor ecx, esp
call fcn.0046ad4d
mov esp, ebp
pop ebp
ret
push 6
mov dword [ecx + 4], 0
call fcn.0046c08b
call fcn.0047681e
int3