Function at 0x407a40
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426650
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x43400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x48]
test eax, eax
je 0x407a92
push eax
call dword [sym.imp.USER32.dll_UnregisterDeviceNotification]
mov dword [esi + 0x48], 0
movups xmm0, xmmword [0x42d9c4]
sub esp, 0x10
mov ecx, esi
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004079d0
mov dword [esi + 0x48], eax
test eax, eax
jne 0x407ace
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [esi + 0xa0], 0
je 0x407b90
movups xmm0, xmmword [0x42df34]
sub esp, 0x10
mov ecx, esi
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004079d0
mov dword [esi + 0x44], eax
test eax, eax
jne 0x407b17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [esi + 0x9c], 0
je 0x407b64
movups xmm0, xmmword [0x42df14]
sub esp, 0x10
mov ecx, esi
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004079d0
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x407b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [esi + 0x6c]
call fcn.0040cb30
mov eax, dword [esi + 0x78]
mov dword [esi], eax
test eax, eax
je 0x407b90
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push esi
push 0x407430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4bc], eax
test byte [esi + 0x1dc], 1
je 0x407c94
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00401230
mov ecx, eax
test ecx, ecx
je 0x407ca8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.SOFTWARESonySysEffect
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00402e30
test al, al
jne 0x407be6
push 0x17
push str.SOFTWARESonySysEffect
lea ecx, [ebp - 0x14]
call fcn.004031f0
mov dword [ebp - 4], 1
lea ecx, [esi + 0x4c4]
mov eax, dword [ebp - 0x14]
mov edi, dword [ecx]
sub edi, 0x10
lea edx, [eax - 0x10]
mov dword [ebp - 0x18], edx
cmp edx, edi
je 0x407c52
cmp dword [edi + 0xc], 0
jl 0x407c46
mov edx, dword [edx]
cmp edx, dword [edi]
jne 0x407c46
mov ecx, dword [ebp - 0x18]
call fcn.004030b0
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407c33
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea edi, [esi + 0x4c4]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
jmp 0x407c58
push dword [eax - 0xc]
push eax
call fcn.004031f0
mov eax, dword [ebp - 0x14]
lea edi, [esi + 0x4c4]
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407c77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
mov dword [esi + 0x4e8], 1
call fcn.00405100
test eax, eax
je 0x407c94
lea ecx, [esi + 0x6c]
call fcn.0040d250
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00401510
int3