Function at 0x445d18
Capabilities:
Accept command line arguments
Get common file path
Get graphical window text
Query environment variable
Read .ini file

Disassembly:
sub esp, 0x4d8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x50e618], eax
mov eax, dword [esp + 0x4dc]
push str.psapi.dll
mov dword [0x50e678], eax
call fcn.00429ad5
mov dword [0x510cc8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x50e544], eax
call fcn.004285e6
test eax, eax
je 0x445d64
mov dword [0x50e670], 1
jmp 0x445d69
call fcn.004285c9
push ebx
push ebp
push esi
push edi
call fcn.00432eb6
push 0x50e048
call fcn.0042f1bc
call fcn.0042f19a
call fcn.0042c286
call fcn.0044d18f
push 0x40
push 0x50e170
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0x40
push 0x50dc50
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, 0x50da48
push esi
call fcn.0042d06f
push 0x50e200
push esi
call fcn.0042a6bf
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov edi, 0x50dcd0
push edi
call ebx
push str..ini
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
call fcn.0042d959
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push dword [0x50e634]
mov esi, 0x4598c8
push str.ShowDebug
push esi
call ebp
push edi
push 0xffffffffffffffff
push str.DpiAwareness
push esi
mov dword [0x50e624], eax
call ebp
push 4
mov dword [0x4a5ad8], eax
pop ebp
cmp eax, 0xffffffff
jne 0x445e25
push edi
push ebp
push str.DpiAwareness
push esi
mov dword [0x4a5ad8], ebp
call fcn.0042a740
push dword [0x4a5ad8]
call fcn.0042dbb9
cmp dword [0x4a5ad8], ebp
jl 0x445e4c
call fcn.004300b4
mov dword [0x4a5adc], eax
call fcn.00430109
mov dword [0x4a5ad0], eax
push str.Riched32.dll
call fcn.00429ad5
xor ebp, ebp
mov dword [0x50e674], eax
cmp eax, ebp
jne 0x445e6b
mov eax, 0xfe
jmp 0x446927
call fcn.00451dc4
push 0x50e5e8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x50e600
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x50e408
push 0x50da48
call fcn.00428d44
push 0x40
push 0x50d938
push str._COMPUTERNAME_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x40
push 0x50d8b8
push str._USERNAME_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.00429b23
mov dword [0x50e668], eax
call fcn.00429b53
push edi
push 1
push str.CrashDump
push esi
mov dword [0x50e66c], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x445ef7
push 0x449f52
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0042873b
xor eax, eax
inc eax
cmp dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
jle 0x44609b
mov eax, dword [esp + 0x10]
mov esi, dword [esp + eax*4 + 0x68]
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jb 0x44615b
movzx eax, word [esi]
cmp ax, 0x2d
je 0x445f46
cmp ax, 0x2f
jne 0x44615b
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x5a
je 0x446139
cmp eax, 0x52
jne 0x445f7f
lea eax, [esi + 6]
push eax
push 0x50e9b8
mov dword [esp + 0x20], 1
call ebx
mov dword [esp + 0x4f8], ebp
mov dword [0x50e62c], 1
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x58
jne 0x445faf
lea eax, [esi + 6]
push eax
push 0x50ebc0
mov dword [esp + 0x20], 1
call ebx
mov dword [esp + 0x4f8], ebp
mov dword [0x50e62c], 1
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x4f
jne 0x445fd5
lea eax, [esi + 6]
push eax
push 0x50edc8
mov dword [esp + 0x20], 1
call ebx
mov dword [esp + 0x4f8], ebp
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x4c
jne 0x44602f
cmp dword [0x50e060], 0x500
jbe 0x44602a
lea eax, [esi + 4]
push eax
call fcn.0042f684
push 0x3d
push esi
mov dword [0x51adac], eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebp
jne 0x446015
push 0x3a
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebp
je 0x44602a
add eax, 2
push eax
push 0x51adb0
call ebx
mov dword [0x51afb8], 1
xor eax, eax
inc eax
jmp 0x446033
mov eax, dword [esp + 0x18]
movzx ecx, word [esi + 2]
and ecx, 0xffffffdf
cmp ecx, 0x46
jne 0x446047
xor eax, eax
inc eax
mov dword [0x51afc0], eax
movzx ecx, word [esi + 2]
and ecx, 0xffffffdf
cmp ecx, 0x53
jne 0x44607c
movzx eax, word [esi + 4]
cmp ax, 0x3a
je 0x446063
cmp ax, 0x3d
jne 0x446079
lea eax, [esi + 6]
push eax
push 0x50e7b0
call ebx
push 0x50e7b0
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
xor eax, eax
inc eax
cmp eax, ebp
je 0x44615b
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x20]
jl 0x445f17
mov esi, 0x4598c8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4460d8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x4460d8
push str.stdout
push 0x50e9b8
call ebx
mov dword [esp + 0x4f8], ebp
mov dword [0x50e62c], 1
cmp dword [0x50e62c], ebp
jne 0x4461b9
push edi
push ebp
push str.OneInstance
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0x9dc1
mov dword [0x510c9c], eax
call fcn.00433fde
cmp dword [0x510c9c], ebp
je 0x4461b9
push 0x50da48
push str..xml
push dword [0x4a5ac8]
push str.32770
call fcn.0042c859
cmp eax, ebp
je 0x4461b9
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4461b1
add esi, 6
push esi
mov dword [0x51adac], ebp
mov dword [0x51afb8], ebp
mov dword [0x51afbc], ebp
call fcn.0043021c
xor eax, eax
jmp 0x446927
xor eax, eax
cmp word [esi + 2], 0x3f
sete al
mov esi, eax
mov eax, 0x4569e1
cmp esi, ebp
jne 0x446175
mov eax, str.Error:_Invalid_Commandline_n_n
push eax
lea eax, [esp + 0xec]
push str._sUsage:_n_nUsbTreeView___S___R___X___O___L__n_n_Options_in_Detail:_n__S_SearchFor____tSet_a_search_string_n__R_ReportFile__tWrite_a_text_report_n__X_ReportFile__tWrite_an_XML_report_n__O_ReportFile__tOpen_an_XML_report_n__L_LogFile______tWrite_a_log_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
neg esi
sbb esi, esi
and esi, 0x30
add esi, 0x10
push esi
push 0x459870
lea eax, [esp + 0xf0]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
jmp 0x446927
call fcn.004501bb
cmp dword [0x51afb8], ebp
je 0x44626d
push str._Win32_
push 0x50e414
push str.________UsbTreeView_V_s__S________
push 1
call fcn.0044fe2e
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push dword [0x50e058]
push dword [0x50e05c]
push 0x50e080
push dword [0x50e054]
push dword [0x50e050]
push dword [0x50e04c]
push dword [0x50e048]
push str.OS_version_u._u._u__SP_u___s_suite_X_type_i_acp_u
push 1
call fcn.0044fe2e
add esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
push eax
push str.cmdln_s
push 1
call fcn.0044fe2e
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
push 0xfffffffffffffff5
call ebx
test eax, eax
je 0x44626d
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
push eax
push 0xfffffffffffffff5
call ebx
push eax
push str.stdout0x_08Ix_filetype_u
push 1
call fcn.0044fe2e
add esp, 0x10
call fcn.0045271f
push 0x194
call fcn.00449e38
pop ecx
cmp eax, ebp
je 0x44628f
mov ecx, eax
call fcn.0040e72a
mov dword [0x510c3c], eax
jmp 0x446295
mov dword [0x510c3c], ebp
push 0x4014
call fcn.00449e38
pop ecx
cmp eax, ebp
je 0x4462b8
push dword [0x510c3c]
mov ecx, eax
call fcn.00407e09
mov dword [0x510c40], eax
jmp 0x4462be
mov dword [0x510c40], ebp
push 0x4028
call fcn.00449e38
pop ecx
cmp eax, ebp
je 0x4462e1
push dword [0x510c3c]
mov ecx, eax
call fcn.004012df
mov dword [0x510c44], eax
jmp 0x4462e7
mov dword [0x510c44], ebp
push 0x24
call fcn.00449e38
pop ecx
cmp eax, ebp
je 0x446301
mov ecx, eax
call fcn.004472c8
mov dword [0x510c48], eax
jmp 0x446307
mov dword [0x510c48], ebp
push 0x30
call fcn.00449e38
pop ecx
cmp eax, ebp
je 0x446321
mov ecx, eax
call fcn.004498e2
mov dword [0x510c4c], eax
jmp 0x446327
mov dword [0x510c4c], ebp
push 0x1ac
call fcn.00449e38
pop ecx
cmp eax, ebp
je 0x446344
mov ecx, eax
call fcn.00447d76
mov dword [0x510c50], eax
jmp 0x44634a
mov dword [0x510c50], ebp
push 0x7f84
push ebp
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebp
mov dword [0x50e6c8], eax
call fcn.0040f54f
push edi
call fcn.0044ad98
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.DarkMode
push esi
call ebx
push edi
push 1
push str.DarkScrl
push esi
mov dword [0x50e660], eax
call ebx
mov dword [0x50e664], eax
cmp dword [0x50e660], ebp
je 0x44639d
mov dword [0x50e660], 1
call fcn.0042cf89
cmp eax, 0x20
je 0x4463ad
mov dword [0x50e660], ebp
push dword [esp + 0x4f8]
call fcn.004458df
test eax, eax
jne 0x4463c5
push 2
pop eax
jmp 0x446927
push edi
push 1
push str.ShowVerInCaption
push esi
call ebx
test eax, eax
je 0x4464d9
xor eax, eax
push 0x1fe
mov word [esp + 0xec], ax
lea eax, [esp + 0xee]
push ebp
push eax
call fcn.00449c78
add esp, 0xc
push 0xff
lea eax, [esp + 0xec]
push eax
push dword [0x50e67c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebp
je 0x4464d9
mov cx, word [0x50e40e]
lea eax, [esp + eax*2 + 0xe8]
cmp cx, 0xa
jb 0x44645a
movzx ecx, cx
push ecx
movzx ecx, word [0x50e40c]
push ecx
movzx ecx, word [0x50e40a]
push ecx
movzx ecx, word [0x50e408]
push ecx
push str._V_u._u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x446481
movzx ecx, word [0x50e40c]
push ecx
movzx ecx, word [0x50e40a]
push ecx
movzx ecx, word [0x50e408]
push ecx
push str._V_u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x47c954
mov edi, 0x50e080
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x4464c5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x47c94c
lea eax, [esp + 0xec]
push eax
call esi
push edi
lea eax, [esp + 0xec]
push eax
call esi
push 0x455eec
lea eax, [esp + 0xec]
push eax
call esi
lea eax, [esp + 0xe8]
push eax
push dword [0x50e67c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.USER32.dll_CreateMenu]
mov esi, dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x510cd0], eax
call esi
mov dword [0x510cd4], eax
call esi
mov dword [0x510cd8], eax
call esi
mov dword [0x510cdc], eax
call esi
mov dword [0x510ce0], eax
call esi
mov dword [0x510ce4], eax
call esi
mov dword [0x510ce8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
mov edi, str.Pop
push edi
push dword [0x510cd4]
mov dword [0x510cec], eax
push 0x10
pop ebx
push ebx
push dword [0x510cd0]
call esi
push edi
push dword [0x510ce4]
push ebx
push dword [0x510cd0]
call esi
push edi
push dword [0x510ce8]
push ebx
push dword [0x510cd0]
call esi
push edi
push dword [0x510cec]
push ebx
push dword [0x510cd0]
call esi
push str.DevId
push 0xa4d8
push ebp
push dword [0x510cdc]
call esi
push str.Safely_Remove
push 0xa488
push ebp
push dword [0x510cd4]
call esi
push str.Restart_Device
push 0xa489
push ebp
push dword [0x510cd4]
call esi
mov ebx, 0x456738
push ebx
push ebp
mov edi, 0x800
push edi
push dword [0x510cd4]
call esi
push str.Restart_Port
push 0xa48a
push ebp
push dword [0x510cd4]
call esi
push ebx
push ebp
push edi
push dword [0x510cd4]
call esi
push str.Copy_Tree_from_here
push dword [0x510cd8]
push 0x10
push dword [0x510cd4]
call esi
push 0x47c8e8
push 0x9d0a
push ebp
push dword [0x510cd8]
call esi
push 0x47c8d8
push 0x9d0b
push ebp
push dword [0x510cd8]
call esi
push str.Copy_Report_from_here
push 0x9d13
push ebp
push dword [0x510cd4]
call esi
push str.Copy...
push dword [0x510cdc]
push 0x10
push dword [0x510cd4]
call esi
push ebx
push ebp
push edi
push dword [0x510cd4]
call esi
push str.Regedit...
push dword [0x510ce0]
push 0x10
push dword [0x510cd4]
call esi
push ebx
push ebp
push edi
push dword [0x510cd4]
call esi
push str.Device_Properties
push 0xa492
push ebp
push dword [0x510cd4]
call esi
push str.Copy
push 0xa7f8
push ebp
push dword [0x510ce4]
call esi
push ebx
push 0xa7fa
push edi
push dword [0x510ce4]
call esi
push str.Select_All
push 0xa7fb
push ebp
push dword [0x510ce4]
call esi
push str.Copy
push 0xa7f8
push ebp
push dword [0x510ce8]
call esi
push str.Paste
push 0xa7f9
push ebp
push dword [0x510ce8]
call esi
push ebx
push 0xa7fa
push edi
push dword [0x510ce8]
call esi
push str.Select_All
push 0xa7fb
push ebp
push dword [0x510ce8]
call esi
push str.Copy
push 0xa7f8
push ebp
push dword [0x510cec]
call esi
push str.Paste
push 0xa7f9
push ebp
push dword [0x510cec]
call esi
push ebx
push 0xa7fa
push edi
push dword [0x510cec]
call esi
push str.Select_All
push 0xa7fb
push ebp
push dword [0x510cec]
call esi
push 0x6b
push dword [0x50e678]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov dword [0x50e704], eax
jmp 0x4467a1
cmp esi, 0xffffffff
je 0x4467b1
lea eax, [esp + 0x2c]
push eax
push dword [0x50e704]
push dword [0x50e67c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4467a1
lea eax, [esp + 0x2c]
push eax
push dword [0x50e67c]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4467a1
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebp
push ebp
push ebp
lea eax, [esp + 0x38]
push eax
call edi
mov esi, eax
cmp esi, ebp
jne 0x446756
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [esp + 0x38]
xor edi, edi
push str.lastmsg_u__res_i_err_u
inc edi
push edi
call fcn.0044fe2e
add esp, 0x14
push ebp
push ebp
call fcn.0043329f
mov eax, dword [0x4c3960]
cmp eax, ebp
je 0x4467e5
push eax
call fcn.00449e73
pop ecx
call fcn.0044d1de
mov esi, 0x50e5e8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call esi
push 0x50e600
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebp
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebp
je 0x4468ce
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x4468c7
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], ecx
call fcn.0042c3f1
push eax
push str.timerunning_s
push edi
call fcn.0044fe2e
add esp, 0xc
lea eax, [esp + 0x48]
push eax
call fcn.0042c3f1
push eax
push str.timekernel__s
push edi
call fcn.0044fe2e
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call fcn.0042c3f1
push eax
push str.timeuser____s
push edi
call fcn.0044fe2e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0045265c
push 0x4a5af8
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyClassImageList]
call fcn.00428544
call fcn.00450315
call fcn.004513da
mov eax, dword [0x510cc8]
cmp eax, ebp
je 0x4468fd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00432f11
cmp word [0x50e9b8], bp
jne 0x446914
cmp word [0x50ebc0], bp
je 0x446922
cmp dword [0x50e7ac], ebp
jne 0x446922
mov dword [0x50efd0], edi
mov eax, dword [0x50efd0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4d8
ret 0x10