Function at 0x444290
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 [0x50b1c8], eax
mov eax, dword [esp + 0x4dc]
push str.psapi.dll
mov dword [0x50b224], eax
call fcn.00428ecd
mov dword [0x50d870], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x50b0f4], eax
call fcn.004279b9
test eax, eax
je 0x4442dc
mov dword [0x50b21c], 1
jmp 0x4442e1
call fcn.0042799c
push ebx
push ebp
push esi
push edi
call fcn.00431dea
push 0x50abf8
call fcn.0042e2d2
call fcn.0042e2b0
call fcn.0042b458
call fcn.0044b6a6
push 0x40
push 0x50ad20
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0x40
push 0x50a800
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, 0x50a5f8
push esi
call fcn.0042c21c
push 0x50adb0
push esi
call fcn.00429ab7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov edi, 0x50a880
push edi
call ebx
push str..ini
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
call fcn.0042cb46
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push dword [0x50b1e0]
mov esi, 0x4575f4
push str.ShowDebug
push esi
call ebp
push edi
push 0xffffffffffffffff
push str.DpiAwareness
push esi
mov dword [0x50b1d0], eax
call ebp
push 4
mov dword [0x4a2ac0], eax
pop ebp
cmp eax, 0xffffffff
jne 0x44439d
push edi
push ebp
push str.DpiAwareness
push esi
mov dword [0x4a2ac0], ebp
call fcn.00429b38
push dword [0x4a2ac0]
call fcn.0042cda6
cmp dword [0x4a2ac0], ebp
jl 0x4443c4
call fcn.0042f051
mov dword [0x4a2ac4], eax
call fcn.0042f0a6
mov dword [0x4a2ab8], eax
push str.Riched32.dll
call fcn.00428ecd
xor ebp, ebp
mov dword [0x50b220], eax
cmp eax, ebp
jne 0x4443e3
mov eax, 0xfe
jmp 0x444ebe
call fcn.0044fe72
push 0x50b198
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x50b1b0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x50afb8
push 0x50a5f8
call fcn.00428118
push 0x40
push 0x50a4e8
push str._COMPUTERNAME_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x40
push 0x50a468
push str._USERNAME_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.00428f1b
mov dword [0x50b214], eax
call fcn.00428f4b
push edi
push 1
push str.CrashDump
push esi
mov dword [0x50b218], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x44446f
push 0x4484f0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00427b0e
xor eax, eax
inc eax
cmp dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
jle 0x444642
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 0x444702
movzx eax, word [esi]
cmp ax, 0x2d
je 0x4444be
cmp ax, 0x2f
jne 0x444702
movzx eax, word [esi + 4]
cmp ax, bp
je 0x4444e7
cmp ax, 0x3a
je 0x4444e7
movzx ecx, word [esi + 6]
cmp cx, 0x3a
je 0x4444e7
cmp ax, 0x3d
je 0x4444e7
cmp cx, 0x3d
jne 0x444702
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x5a
je 0x4446e0
cmp eax, 0x52
jne 0x444520
lea eax, [esi + 6]
push eax
push 0x50b560
mov dword [esp + 0x20], 1
call ebx
mov dword [esp + 0x4f8], ebp
mov dword [0x50b1d8], 1
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x58
jne 0x444550
lea eax, [esi + 6]
push eax
push 0x50b768
mov dword [esp + 0x20], 1
call ebx
mov dword [esp + 0x4f8], ebp
mov dword [0x50b1d8], 1
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x4f
jne 0x444576
lea eax, [esi + 6]
push eax
push 0x50b970
mov dword [esp + 0x20], 1
call ebx
mov dword [esp + 0x4f8], ebp
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x4c
jne 0x4445d6
cmp dword [0x50ac10], 0x500
jbe 0x4445d1
movzx eax, word [esi + 4]
cmp ax, 0x30
jb 0x4445b2
cmp ax, 0x39
ja 0x4445b2
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [0x517934], eax
lea eax, [esi + 8]
jmp 0x4445bf
mov dword [0x517934], 3
lea eax, [esi + 6]
push eax
push 0x517938
call ebx
mov dword [0x517b40], 1
xor eax, eax
inc eax
jmp 0x4445da
mov eax, dword [esp + 0x18]
movzx ecx, word [esi + 2]
and ecx, 0xffffffdf
cmp ecx, 0x46
jne 0x4445ee
xor eax, eax
inc eax
mov dword [0x517b48], eax
movzx ecx, word [esi + 2]
and ecx, 0xffffffdf
cmp ecx, 0x53
jne 0x444623
movzx eax, word [esi + 4]
cmp ax, 0x3a
je 0x44460a
cmp ax, 0x3d
jne 0x444620
lea eax, [esi + 6]
push eax
push 0x50b358
call ebx
push 0x50b358
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
xor eax, eax
inc eax
cmp eax, ebp
je 0x444702
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x20]
jl 0x44448f
mov esi, 0x4575f4
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x44467f
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x44467f
push str.stdout
push 0x50b560
call ebx
mov dword [esp + 0x4f8], ebp
mov dword [0x50b1d8], 1
cmp dword [0x50b1d8], ebp
jne 0x444760
push edi
push ebp
push str.OneInstance
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0x9dc1
mov dword [0x50d844], eax
call fcn.00432e9c
cmp dword [0x50d844], ebp
je 0x444760
push 0x50a5f8
push str..xml
push dword [0x4a2ab0]
push str.32770
call fcn.0042ba2b
cmp eax, ebp
je 0x444760
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x444758
add esi, 6
push esi
mov dword [0x517934], ebp
mov dword [0x517b40], ebp
mov dword [0x517b44], ebp
call fcn.0042f1b9
xor eax, eax
jmp 0x444ebe
xor eax, eax
cmp word [esi + 2], 0x3f
sete al
mov esi, eax
mov eax, 0x454999
cmp esi, ebp
jne 0x44471c
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_LogFileName__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 0x45759c
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 0x444ebe
call fcn.0044e268
cmp dword [0x517b40], ebp
je 0x444814
push str._Win32_
push 0x50afc4
push str.________UsbTreeView_V_s__S________
push 1
call fcn.0044def7
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push dword [0x50ac08]
push dword [0x50ac0c]
push 0x50ac30
push dword [0x50ac04]
push dword [0x50ac00]
push dword [0x50abfc]
push dword [0x50abf8]
push str.OS_version_u._u._u__SP_u___s_suite_X_type_i_acp_u
push 1
call fcn.0044def7
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.0044def7
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
push 0xfffffffffffffff5
call ebx
test eax, eax
je 0x444814
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.0044def7
add esp, 0x10
call fcn.004507cd
push 0x194
call fcn.004483d6
pop ecx
cmp eax, ebp
je 0x444836
mov ecx, eax
call fcn.0040e023
mov dword [0x50d7e4], eax
jmp 0x44483c
mov dword [0x50d7e4], ebp
push 0x4014
call fcn.004483d6
pop ecx
cmp eax, ebp
je 0x44485f
push dword [0x50d7e4]
mov ecx, eax
call fcn.00407ee1
mov dword [0x50d7e8], eax
jmp 0x444865
mov dword [0x50d7e8], ebp
push 0x4028
call fcn.004483d6
pop ecx
cmp eax, ebp
je 0x444888
push dword [0x50d7e4]
mov ecx, eax
call fcn.004012df
mov dword [0x50d7ec], eax
jmp 0x44488e
mov dword [0x50d7ec], ebp
push 0x24
call fcn.004483d6
pop ecx
cmp eax, ebp
je 0x4448a8
mov ecx, eax
call fcn.0044585f
mov dword [0x50d7f0], eax
jmp 0x4448ae
mov dword [0x50d7f0], ebp
push 0x30
call fcn.004483d6
pop ecx
cmp eax, ebp
je 0x4448c8
mov ecx, eax
call fcn.00447e80
mov dword [0x50d7f4], eax
jmp 0x4448ce
mov dword [0x50d7f4], ebp
push 0x1ac
call fcn.004483d6
pop ecx
cmp eax, ebp
je 0x4448eb
mov ecx, eax
call fcn.00446314
mov dword [0x50d7f8], eax
jmp 0x4448f1
mov dword [0x50d7f8], ebp
push 0x7f84
push ebp
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebp
mov dword [0x50b274], eax
call fcn.0040ee48
push edi
call fcn.004492e5
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 [0x50b20c], eax
call ebx
mov dword [0x50b210], eax
cmp dword [0x50b20c], ebp
je 0x444944
mov dword [0x50b20c], 1
push dword [esp + 0x4f8]
call fcn.00443e59
test eax, eax
jne 0x44495c
push 2
pop eax
jmp 0x444ebe
push edi
push 1
push str.ShowVerInCaption
push esi
call ebx
test eax, eax
je 0x444a70
xor eax, eax
push 0x1fe
mov word [esp + 0xec], ax
lea eax, [esp + 0xee]
push ebp
push eax
call fcn.00448216
add esp, 0xc
push 0xff
lea eax, [esp + 0xec]
push eax
push dword [0x50b228]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebp
je 0x444a70
mov cx, word [0x50afbe]
lea eax, [esp + eax*2 + 0xe8]
cmp cx, 0xa
jb 0x4449f1
movzx ecx, cx
push ecx
movzx ecx, word [0x50afbc]
push ecx
movzx ecx, word [0x50afba]
push ecx
movzx ecx, word [0x50afb8]
push ecx
push str._V_u._u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x444a18
movzx ecx, word [0x50afbc]
push ecx
movzx ecx, word [0x50afba]
push ecx
movzx ecx, word [0x50afb8]
push ecx
push str._V_u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x479db8
mov edi, 0x50ac30
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x444a5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x479db0
lea eax, [esp + 0xec]
push eax
call esi
push edi
lea eax, [esp + 0xec]
push eax
call esi
push 0x453ea4
lea eax, [esp + 0xec]
push eax
call esi
lea eax, [esp + 0xe8]
push eax
push dword [0x50b228]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.USER32.dll_CreateMenu]
mov esi, dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x50d878], eax
call esi
mov dword [0x50d87c], eax
call esi
mov dword [0x50d880], eax
call esi
mov dword [0x50d884], eax
call esi
mov dword [0x50d888], eax
call esi
mov dword [0x50d88c], eax
call esi
mov dword [0x50d890], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
mov edi, str.Pop
push edi
push dword [0x50d87c]
mov dword [0x50d894], eax
push 0x10
pop ebx
push ebx
push dword [0x50d878]
call esi
push edi
push dword [0x50d88c]
push ebx
push dword [0x50d878]
call esi
push edi
push dword [0x50d890]
push ebx
push dword [0x50d878]
call esi
push edi
push dword [0x50d894]
push ebx
push dword [0x50d878]
call esi
push str.DevId
push 0xa4d8
push ebp
push dword [0x50d884]
call esi
push str.Safely_Remove
push 0xa488
push ebp
push dword [0x50d87c]
call esi
push str.Restart_Device
push 0xa489
push ebp
push dword [0x50d87c]
call esi
mov ebx, 0x4546f0
push ebx
push ebp
mov edi, 0x800
push edi
push dword [0x50d87c]
call esi
push str.Restart_Port
push 0xa48a
push ebp
push dword [0x50d87c]
call esi
push ebx
push ebp
push edi
push dword [0x50d87c]
call esi
push str.Copy_Tree_from_here
push dword [0x50d880]
push 0x10
push dword [0x50d87c]
call esi
push 0x479d4c
push 0xa474
push ebp
push dword [0x50d880]
call esi
push 0x479d3c
push 0xa475
push ebp
push dword [0x50d880]
call esi
push str.Copy_Report_from_here
push 0xa476
push ebp
push dword [0x50d87c]
call esi
push str.Copy...
push dword [0x50d884]
push 0x10
push dword [0x50d87c]
call esi
push ebx
push ebp
push edi
push dword [0x50d87c]
call esi
push str.Regedit...
push dword [0x50d888]
push 0x10
push dword [0x50d87c]
call esi
push ebx
push ebp
push edi
push dword [0x50d87c]
call esi
push str.Device_Properties
push 0xa492
push ebp
push dword [0x50d87c]
call esi
push str.Copy
push 0xb600
push ebp
push dword [0x50d88c]
call esi
push ebx
push 0xb602
push edi
push dword [0x50d88c]
call esi
push str.Select_All
push 0xb603
push ebp
push dword [0x50d88c]
call esi
push str.Copy
push 0xb600
push ebp
push dword [0x50d890]
call esi
push str.Paste
push 0xb601
push ebp
push dword [0x50d890]
call esi
push ebx
push 0xb602
push edi
push dword [0x50d890]
call esi
push str.Select_All
push 0xb603
push ebp
push dword [0x50d890]
call esi
push str.Copy
push 0xb600
push ebp
push dword [0x50d894]
call esi
push str.Paste
push 0xb601
push ebp
push dword [0x50d894]
call esi
push ebx
push 0xb602
push edi
push dword [0x50d894]
call esi
push str.Select_All
push 0xb603
push ebp
push dword [0x50d894]
call esi
push 0x6b
push dword [0x50b224]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov dword [0x50b2b0], eax
jmp 0x444d38
cmp esi, 0xffffffff
je 0x444d48
lea eax, [esp + 0x2c]
push eax
push dword [0x50b2b0]
push dword [0x50b228]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x444d38
lea eax, [esp + 0x2c]
push eax
push dword [0x50b228]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x444d38
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 0x444ced
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.0044def7
add esp, 0x14
push ebp
push ebp
call fcn.004321d3
mov eax, dword [0x4c0920]
cmp eax, ebp
je 0x444d7c
push eax
call fcn.00448411
pop ecx
call fcn.0044b6f5
mov esi, 0x50b198
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 0x50b1b0
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 0x444e65
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 0x444e5e
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.0042b5c3
push eax
push str.timerunning_s
push edi
call fcn.0044def7
add esp, 0xc
lea eax, [esp + 0x48]
push eax
call fcn.0042b5c3
push eax
push str.timekernel__s
push edi
call fcn.0044def7
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call fcn.0042b5c3
push eax
push str.timeuser____s
push edi
call fcn.0044def7
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0045070a
push 0x4a2ae0
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyClassImageList]
call fcn.00427917
call fcn.0044e3c2
call fcn.0044f487
mov eax, dword [0x50d870]
cmp eax, ebp
je 0x444e94
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00431e45
cmp word [0x50b560], bp
jne 0x444eab
cmp word [0x50b768], bp
je 0x444eb9
cmp dword [0x50b354], ebp
jne 0x444eb9
mov dword [0x50bb78], edi
mov eax, dword [0x50bb78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4d8
ret 0x10