Function at 0x401390
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x465e25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
mov al, byte [esp + 3]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
push ebx
mov dword [esp + 0x18], esi
mov byte [esi], al
call fcn.00401ad0
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov ecx, dword [0x47c0a8]
mov edx, dword [0x47c0ac]
mov eax, dword [0x47c0b0]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x47c0b4]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x2c8]
mov dword [esp + 0x2c0], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esi + 0x10], edx
push str.SetupApi.dll
mov byte [esp + 0x2c4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x30], edi
je 0x401807
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push str.SetupDiGetClassDevsA
push edi
call esi
push str.SetupDiEnumDeviceInterfaces
push edi
mov ebx, eax
call esi
push str.SetupDiGetDeviceInterfaceDetailA
push edi
mov dword [esp + 0x34], eax
call esi
mov ebp, eax
push str.SetupDiGetDeviceRegistryPropertyA
push edi
mov dword [esp + 0x20], ebp
call esi
push str.SetupDiDestroyDeviceInfoList
push edi
mov dword [esp + 0x30], eax
call esi
test ebx, ebx
mov dword [esp + 0x38], eax
je 0x4017f9
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4017f9
test ebp, ebp
je 0x4017f9
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4017f9
test eax, eax
je 0x4017f9
push 0x12
push 0
lea eax, [esp + 0x6c]
push 0
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4017f4
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x64]
push ecx
push 0
push edx
push 0
push ebx
mov dword [esp + 0xb4], 0x1c
mov dword [esp + 0x38], 0
call esi
test eax, eax
je 0x4017f4
jmp 0x4014e2
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x20]
push 0
push eax
push 0
lea ecx, [esp + 0xac]
push 0
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x7c]
mov dword [esp + 0x78], 0x1c
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x74]
mov dword [ebp], 5
mov ecx, dword [esp + 0x20]
push eax
push 0
push ecx
lea edx, [esp + 0xac]
push ebp
push edx
push ebx
mov dword [esp + 0x48], ebp
call dword [esp + 0x30]
test eax, eax
je 0x4017c0
lea esi, [ebp + 4]
push str.pid_
push esi
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov edi, eax
push 4
add edi, 5
lea eax, [esp + 0xa4]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
push edi
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x18
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x74]
push 0
push 0x100
push ecx
push 0
push 0xc
push edx
push ebx
mov dword [esp + 0x7c], eax
call edi
test eax, eax
jne 0x4015d8
push eax
lea eax, [esp + 0xc0]
push 0x100
push eax
push 0
lea ecx, [esp + 0x84]
push 0
push ecx
push ebx
call edi
test eax, eax
jne 0x4015d8
push 0x100
lea edx, [esp + 0xc0]
push esi
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
push 0
lea eax, [esp + 0x1c0]
push 0x100
push eax
push 0
lea ecx, [esp + 0x84]
push 1
push ecx
push ebx
mov dword [esp + 0x38], 0
call edi
test eax, eax
je 0x401642
lea edx, [esp + 0x1bc]
push str.Rev_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov edi, eax
push 4
add edi, 5
lea eax, [esp + 0x9c]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
push edi
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x18
cmp eax, 8
jl 0x401642
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x60]
cmp edx, dword [ecx + 0x10]
jne 0x4017c0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x50], cl
lea ecx, [esp + 0x50]
mov byte [esp + 0x2c8], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x2c8], 3
mov ebp, ecx
lea ecx, [esp + 0x40]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4016c9
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea edi, [esp + 0xbc]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x50]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401714
mov edi, dword [esp + 0x50]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0xbc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x54], ebp
mov byte [ecx + ebp], 0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x5c], edx
mov ebp, dword [esp + 0x14]
push 0x2c
mov byte [esp + 0x2c8], 4
mov esi, dword [ebp + 4]
mov edi, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ecx, esi
test esi, esi
jne 0x401740
mov ecx, eax
mov dword [eax], ecx
mov ecx, edi
test edi, edi
jne 0x40174a
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x3c]
add eax, 8
push ecx
push eax
call fcn.00401b00
mov esi, dword [ebp + 8]
add esp, 8
inc esi
mov dword [ebp + 8], esi
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x2c8], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x40]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x2c4], 1
je 0x4017b0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4017a7
cmp al, 0xff
je 0x4017a7
dec al
mov byte [ecx], al
jmp 0x4017b0
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
lea edx, [esp + 0xa0]
inc eax
push edx
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x6c]
push eax
push 0
push ebx
call dword [esp + 0x40]
test eax, eax
jne 0x4014de
mov edi, dword [esp + 0x34]
push ebx
call dword [esp + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
pop ebp
jmp 0x401809
mov eax, esi
mov ecx, dword [esp + 0x2b8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2b8
ret 4