Function at 0x10037040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10195b40
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0xa0]
mov edi, ecx
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x1c], eax
xor eax, eax
push edx
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x58], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10037116
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x103
je 0x1003710e
push str.FlashToolLib_host_windows_com_enum.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x24f
lea esi, [esp + 0x28]
call fcn.10111280
mov esi, eax
mov dword [esp + 0x90], 0
call edi
push eax
mov eax, dword [0x103b321c]
push str.EnumerateDevice__:_Enum_device_fail__Err__d_
push eax
push esi
call fcn.10111350
add esp, 0x10
or eax, 0xffffffff
jmp 0x10037393
push 0
push 0x1ff
lea ebx, [ebp + 0x208]
push ebx
lea ecx, [esp + 0x58]
push ecx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
test eax, eax
jne 0x10037192
push str.FlashToolLib_host_windows_com_enum.cpp
mov edx, str._WARNING:
mov cl, 0xd2
mov eax, 0x25c
lea esi, [esp + 0x28]
call fcn.10111280
mov esi, eax
mov dword [esp + 0x90], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x103b321c]
push eax
push str.EnumerateDevice__:_Get_instance_ID_failed__Err__d_
push edx
push esi
call fcn.10111350
push str.Unknown
push 0x1ff
push ebx
mov dword [esp + 0xac], 0xffffffff
call fcn.1016d887
add esp, 0x1c
push 0
push 0x1ff
lea ebx, [ebp + 8]
push ebx
push 0
push 0xc
lea eax, [esp + 0x60]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x10037218
push str.FlashToolLib_host_windows_com_enum.cpp
mov edx, str._WARNING:
mov cl, 0xd2
mov eax, 0x26a
lea esi, [esp + 0x28]
call fcn.10111280
mov esi, eax
mov dword [esp + 0x90], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x103b321c]
push eax
push str.EnumerateDevice__:_Get_friendly_name_failed__Err__d_
push ecx
push esi
call fcn.10111350
push str.Unknown
push 0x200
push ebx
mov dword [esp + 0xac], 0xffffffff
call fcn.1016d887
add esp, 0x1c
mov dword [ebp + 4], 0
jmp 0x10037245
push str._COM
push ebx
add ebp, 4
call fcn.1016cf90
add esp, 8
test eax, eax
je 0x1003723e
push ebp
push str._COM_u_
push eax
call fcn.1016da3e
add esp, 0xc
jmp 0x10037245
mov dword [ebp], 0xffffffff
cmp byte [esp + 0x9c], 0
je 0x10037391
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x68]
push edx
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x58]
push ecx
push edi
mov dword [esp + 0x7c], 0x1c
mov dword [esp + 0x28], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x1003734c
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x78]
push eax
push edi
inc ebx
call esi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.1016bba0
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x94], 3
push 0
mov dword [ebp], 5
mov eax, dword [esp + 0x1c]
push eax
push ebp
lea ecx, [esp + 0x78]
push ecx
push edi
call esi
test eax, eax
jne 0x100373b8
push str.FlashToolLib_host_windows_com_enum.cpp
mov edx, str._WARNING:
mov cl, 0xd2
mov eax, 0x28f
lea esi, [esp + 0x28]
call fcn.10111280
mov esi, eax
mov byte [esp + 0x90], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x103b321c]
push eax
push str.EnumerateDevice__:_Get_interface_detail_info_failed__Err__d_
push edx
push esi
call fcn.10111350
push ebp
mov dword [esp + 0xa4], 0xffffffff
call fcn.1016dfc5
mov ecx, dword [esp + 0x2c]
add esp, 0x14
lea eax, [esp + 0x68]
push eax
push ebx
push ecx
lea edx, [esp + 0x58]
push edx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x10037280
push str.FlashToolLib_host_windows_com_enum.cpp
mov edx, str._WARNING:
mov cl, 0xd2
mov eax, 0x2a0
lea esi, [esp + 0x3c]
inc ebx
call fcn.10111280
mov esi, eax
mov dword [esp + 0x90], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x103b321c]
push eax
push ebx
push str.EnumerateDevice__:_Not_interface_discovered_in_this_device__Index__d___Err__d_
push ecx
push esi
call fcn.10111350
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1016cb16
add esp, 0x80
ret
lea edx, [ebp + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100373c0
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x20]
push edx
add eax, 0x408
push eax
call fcn.1016d8b0
push ebp
call fcn.1016dfc5
add esp, 0x10
jmp 0x10037391