Function at 0x4336c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4336de
mov dword [ebp + 0x14], 2
jmp 0x4336f4
cmp dword [ebp + 0x14], 0
je 0x4336ea
cmp dword [ebp + 0x14], 1
jne 0x4336f4
mov eax, 3
jmp 0x433b8d
cmp dword [0x474b98], 0
je 0x43370e
mov dword [ebp - 0x20], 0x64
mov eax, 0x64
jmp 0x433b8d
cmp dword [0x4763cc], 0
je 0x43381b
mov eax, dword [0x4763d8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x433745
push 0x1388
mov ecx, dword [0x4763cc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x28], eax
mov edx, dword [0x4763cc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], eax
mov dword [0x4763cc], 0
mov eax, dword [0x4763dc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], eax
mov dword [0x4763dc], 0
mov ecx, dword [0x4763d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], eax
mov dword [0x4763d8], 0
mov edx, dword [0x4763d4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], eax
mov dword [0x4763d4], 0
mov eax, dword [0x4763d0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], eax
mov dword [0x4763d0], 0
mov ecx, dword [0x4763b4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [0x4763b4], 0
mov edx, dword [0x4763b8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [0x4763b8], 0
mov dword [0x4763bc], 0
mov dword [0x4763c0], 0
mov dword [0x4763c4], 0
mov dword [0x4763c8], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43383c
mov eax, dword [ebp - 0x14]
mov dword [0x4763d0], eax
jmp 0x433857
mov dword [0x4763d0], 0
mov dword [ebp - 0x20], 2
jmp 0x433a71
mov ecx, dword [0x471d50]
push ecx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x43387e
mov edx, dword [ebp - 8]
mov dword [0x4763d4], edx
jmp 0x4338bf
mov eax, dword [str.CTEventForDeviceArrivalNotification]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4338a4
mov ecx, dword [ebp - 8]
mov dword [0x4763d4], ecx
jmp 0x4338bf
mov dword [0x4763d4], 0
mov dword [ebp - 0x20], 2
jmp 0x433a71
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4338e1
mov edx, dword [ebp - 0x18]
mov dword [0x4763d8], edx
jmp 0x4338fc
mov dword [0x4763d8], 0
mov dword [ebp - 0x20], 2
jmp 0x433a71
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43391d
mov eax, dword [ebp - 0x10]
mov dword [0x4763dc], eax
jmp 0x433938
mov dword [0x4763dc], 0
mov dword [ebp - 0x20], 2
jmp 0x433a71
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [0x4763b4], eax
cmp dword [0x4763b4], 0
je 0x43396e
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x4763b4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x43397f
mov dword [ebp - 0x20], 6
jmp 0x433a71
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [0x4763b8], eax
cmp dword [0x4763b8], 0
je 0x4339b5
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x4763b8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4339c6
mov dword [ebp - 0x20], 6
jmp 0x433a71
mov eax, dword [ebp + 0x10]
mov dword [0x4763bc], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x4763c0], ecx
mov edx, dword [ebp + 0x18]
mov dword [0x4763c4], edx
mov ecx, 0xd
lea esi, [ebp + 0x1c]
mov edi, 0x4763e8
rep movsd dword es:[edi], dword [esi]
mov dword [0x4763c8], 0x474c88
mov dword [ebp - 0xc], 0x433220
mov dword [0x4763e0], 0
mov dword [0x4763e4], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4763cc], eax
cmp dword [0x4763cc], 0
jne 0x433a43
mov dword [ebp - 0x20], 2
jmp 0x433a71
cmp dword [0x4763e0], 0
jne 0x433a56
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x433a43
cmp dword [0x4763e4], 0
je 0x433a71
mov edx, dword [0x4763e4]
push edx
call fcn.0044b220
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x433b82
cmp dword [0x4763cc], 0
je 0x433a9d
mov eax, dword [0x4763cc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], eax
mov dword [0x4763cc], 0
mov ecx, dword [0x4763b4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [0x4763b4], 0
mov edx, dword [0x4763b8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [0x4763b8], 0
mov dword [0x4763bc], 0
mov dword [0x4763c0], 0
mov dword [0x4763c4], 0
mov dword [0x4763c8], 0
cmp dword [0x4763d0], 0
je 0x433b15
mov eax, dword [0x4763d0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], eax
mov dword [0x4763d0], 0
cmp dword [0x4763d4], 0
je 0x433b38
mov ecx, dword [0x4763d4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], eax
mov dword [0x4763d4], 0
cmp dword [0x4763d8], 0
je 0x433b5b
mov edx, dword [0x4763d8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], eax
mov dword [0x4763d8], 0
cmp dword [0x4763dc], 0
je 0x433b7d
mov eax, dword [0x4763dc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], eax
mov dword [0x4763dc], 0
mov eax, dword [ebp - 0x20]
jmp 0x433b8d
mov ecx, dword [ebp + 0x50]
mov dword [ecx], 0x474c88
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret