Function at 0x4174b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x48
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
mov ecx, 0xd
lea esi, [esp + 0x70]
lea edi, [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xa4]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ecx
jne 0x417501
mov dword [esp + 0x68], 2
jmp 0x417512
cmp eax, ebx
je 0x417866
cmp eax, 1
je 0x417866
cmp dword [0x446ff8], ebx
je 0x417532
pop edi
pop esi
pop ebp
mov eax, 0x64
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004217dd
add esp, 0x48
ret
cmp dword [0x44874c], ebx
je 0x4175ed
mov edx, dword [0x448758]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x417560
mov eax, dword [0x44874c]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x44874c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [0x44875c]
push edx
mov dword [0x44874c], ebx
call edi
mov eax, dword [0x448758]
push eax
mov dword [0x44875c], ebx
call edi
mov ecx, dword [0x448754]
push ecx
mov dword [0x448758], ebx
call edi
mov edx, dword [0x448750]
push edx
mov dword [0x448754], ebx
call edi
mov eax, dword [0x448734]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
push eax
mov dword [0x448750], ebx
call esi
mov ecx, dword [0x448738]
push ecx
mov dword [0x448734], ebx
call esi
mov dword [0x448738], ebx
mov dword [0x44873c], ebx
mov dword [0x448740], ebx
mov dword [0x448744], ebx
mov dword [0x448748], ebx
jmp 0x4175f3
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
cmp eax, ebx
je 0x417837
push str.GlobalCTEventForDeviceArrivalNotification
push ebx
push 1
push ebx
mov dword [0x448750], eax
call esi
cmp eax, ebx
jne 0x41762f
push str.CTEventForDeviceArrivalNotification
push ebx
push 1
push ebx
call esi
cmp eax, ebx
je 0x417827
push ebx
push ebx
push 1
push ebx
mov dword [0x448754], eax
call esi
cmp eax, ebx
je 0x417817
push ebx
push ebx
push 1
push ebx
mov dword [0x448758], eax
call esi
cmp eax, ebx
je 0x417807
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
mov dword [0x44875c], eax
call edi
mov ebp, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
lea edx, [eax + eax + 2]
push edx
call ebp
cmp eax, ebx
mov dword [0x448734], eax
je 0x4177fd
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ecx
push eax
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
lea eax, [eax + eax + 2]
push eax
call ebp
cmp eax, ebx
mov dword [0x448738], eax
je 0x4177fd
mov ecx, dword [esp + 0x10]
push ecx
push eax
call esi
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov dword [0x44873c], edx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push 0x414ac0
mov dword [0x448744], ecx
push ebx
mov dword [0x448740], eax
mov ecx, 0xd
lea esi, [esp + 0x34]
mov edi, 0x448768
rep movsd dword es:[edi], dword [esi]
push ebx
mov dword [0x448748], 0x447008
mov dword [0x448760], ebx
mov dword [0x448764], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x44874c], eax
jne 0x417717
mov esi, 2
jmp 0x41774d
cmp dword [0x448760], ebx
jne 0x417731
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
cmp dword [0x448760], ebx
je 0x417725
mov eax, dword [0x448764]
cmp eax, ebx
je 0x417847
call fcn.00406530
mov esi, eax
cmp esi, ebx
je 0x417847
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x44874c]
cmp eax, ebx
je 0x417765
push eax
call edi
mov dword [0x44874c], ebx
mov eax, dword [0x448734]
mov ebp, dword [sym.imp.ole32.dll_CoTaskMemFree]
push eax
call ebp
mov ecx, dword [0x448738]
push ecx
mov dword [0x448734], ebx
call ebp
mov eax, dword [0x448750]
cmp eax, ebx
mov dword [0x448738], ebx
mov dword [0x44873c], ebx
mov dword [0x448740], ebx
mov dword [0x448744], ebx
mov dword [0x448748], ebx
je 0x4177b2
push eax
call edi
mov dword [0x448750], ebx
mov eax, dword [0x448754]
cmp eax, ebx
je 0x4177c4
push eax
call edi
mov dword [0x448754], ebx
mov eax, dword [0x448758]
cmp eax, ebx
je 0x4177d6
push eax
call edi
mov dword [0x448758], ebx
mov eax, dword [0x44875c]
cmp eax, ebx
je 0x4177e8
push eax
call edi
mov dword [0x44875c], ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004217dd
add esp, 0x48
ret
mov esi, 6
jmp 0x41774d
mov dword [0x44875c], ebx
mov esi, 2
jmp 0x417753
mov dword [0x448758], ebx
mov esi, 2
jmp 0x417753
mov dword [0x448754], ebx
mov esi, 2
jmp 0x417753
mov dword [0x448750], ebx
mov esi, 2
jmp 0x417753
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [edx], 0x447008
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004217dd
add esp, 0x48
ret
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 3
call fcn.004217dd
add esp, 0x48
ret