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

Disassembly:
sub esp, 0x558
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x511788], eax
mov eax, dword [esp + 0x55c]
push str.psapi.dll
mov dword [0x505c24], eax
call fcn.00427c78
mov dword [0x5080ec], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x505b04], eax
call fcn.004268a9
test eax, eax
je 0x440439
mov dword [0x505c1c], 1
jmp 0x44043e
call fcn.0042688c
push ebx
push ebp
push esi
push edi
call fcn.0042f63b
push 0x505610
call fcn.0042c005
call fcn.0042bfe3
call fcn.004298c0
call fcn.00447646
push 0x40
push 0x505738
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0x40
push 0x5052d8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, 0x5050d0
push esi
call fcn.0042a75f
push 0x5057c0
push esi
call fcn.00428866
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov edi, 0x505358
push edi
call ebx
push str..ini
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
call fcn.0042afe9
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push dword [0x505be4]
mov esi, 0x453138
push str.ShowDebug
push esi
call ebp
push edi
push 0xffffffffffffffff
push str.DpiAwareness
push esi
mov dword [0x505bd4], eax
call ebp
push 4
mov dword [0x49dab4], eax
pop ebp
cmp eax, 0xffffffff
jne 0x4404fa
push edi
push ebp
push str.DpiAwareness
push esi
mov dword [0x49dab4], ebp
call fcn.004288e7
push dword [0x49dab4]
call fcn.0042b249
cmp dword [0x49dab4], ebp
jl 0x440517
call fcn.0042cbd0
mov dword [0x49dab8], eax
push str.Riched32.dll
call fcn.00427c78
xor ebp, ebp
mov dword [0x505c20], eax
cmp eax, ebp
jne 0x440536
mov eax, 0xfe
jmp 0x440fa4
call fcn.0044bdc7
push 0x505ba4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x505bbc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x5059c8
push 0x5050d0
call fcn.00426f40
push 0x40
push 0x505050
push str._COMPUTERNAME_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x40
push 0x504fd0
push str._USERNAME_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.00427cc6
mov dword [0x505c14], eax
call fcn.00427cf6
push edi
push 1
push str.CrashDump
push esi
mov dword [0x505c18], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x4405c2
push 0x4445fc
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004441da
xor eax, eax
inc eax
cmp dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
jle 0x440765
mov eax, dword [esp + 0x10]
mov esi, dword [esp + eax*4 + 0xe8]
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jb 0x440827
movzx eax, word [esi]
cmp ax, 0x2d
je 0x440617
cmp ax, 0x2f
jne 0x440827
movzx eax, word [esi + 4]
cmp ax, bp
je 0x440640
cmp ax, 0x3a
je 0x440640
movzx ecx, word [esi + 6]
cmp cx, 0x3a
je 0x440640
cmp ax, 0x3d
je 0x440640
cmp cx, 0x3d
jne 0x440827
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x5a
je 0x440805
cmp eax, 0x52
jne 0x440679
lea eax, [esi + 6]
push eax
push 0x505d50
mov dword [esp + 0x20], 1
call ebx
mov dword [esp + 0x578], ebp
mov dword [0x505bdc], 1
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x58
jne 0x4406a9
lea eax, [esi + 6]
push eax
push 0x505f58
mov dword [esp + 0x20], 1
call ebx
mov dword [esp + 0x578], ebp
mov dword [0x505bdc], 1
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x4f
jne 0x4406cf
lea eax, [esi + 6]
push eax
push 0x506160
mov dword [esp + 0x20], 1
call ebx
mov dword [esp + 0x578], ebp
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x4c
jne 0x44072c
cmp dword [0x505628], 0x500
jbe 0x44072c
movzx eax, word [esi + 4]
cmp ax, 0x30
jb 0x44070b
cmp ax, 0x39
ja 0x44070b
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [0x512584], eax
lea eax, [esi + 8]
jmp 0x440718
mov dword [0x512584], 3
lea eax, [esi + 6]
push eax
push 0x512588
call ebx
xor eax, eax
inc eax
mov dword [esp + 0x18], eax
mov dword [0x512790], eax
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x46
jne 0x440744
xor eax, eax
inc eax
mov dword [0x512798], eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
je 0x440827
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x20]
jl 0x4405e5
mov esi, 0x453138
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4407a2
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x4407a2
push str.stdout
push 0x505d50
call ebx
mov dword [esp + 0x578], ebp
mov dword [0x505bdc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [0x505bdc], ebp
jne 0x440885
push edi
push ebp
push str.OneInstance
push esi
call ebx
push eax
push 0x9dc1
mov dword [0x5080c0], eax
call fcn.00430453
cmp dword [0x5080c0], ebp
je 0x440885
push 0x5050d0
push str..xml
push dword [0x49daa0]
push str.32770
call fcn.00429e93
cmp eax, ebp
je 0x440885
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x44087d
add esi, 6
push esi
mov dword [0x512584], ebp
mov dword [0x512790], ebp
mov dword [0x512794], ebp
call fcn.0042cd38
xor eax, eax
jmp 0x440fa4
xor eax, eax
cmp word [esi + 2], 0x3f
sete al
mov esi, eax
mov eax, 0x4507c1
cmp esi, ebp
jne 0x440841
mov eax, str.Error:_Invalid_Commandline_n_n
push eax
lea eax, [esp + 0x16c]
push str._sUsage:_n_nUsbTreeView___R___X___O___L__n_n_Options_in_Detail:_n__RReportFile_tWrite_a_text_report_n__XReportFile_tWrite_an_XML_report_n__OReportFile_tOpen_an_XML_report_n__LLogFileName_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 0x4530e0
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
jmp 0x440fa4
call fcn.0044a1be
cmp dword [0x512790], ebp
je 0x44093f
push str._Win32_
push 0x5059d4
push str.________UsbTreeView_V_s__S________
push 1
call fcn.00449e4d
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push dword [0x505620]
push dword [0x505624]
push 0x505648
push dword [0x50561c]
push dword [0x505618]
push dword [0x505614]
push dword [0x505610]
push str.OS_version_u._u._u__SP_u___s_suite_X_type_i_acp_u
push 1
call fcn.00449e4d
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.00449e4d
add esp, 0xc
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x44093f
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
push str.stdout0x_08Ix_filetype_u
push 1
call fcn.00449e4d
add esp, 0x10
call fcn.0044c722
push 0x194
call fcn.00444556
pop ecx
cmp eax, ebp
je 0x440961
mov ecx, eax
call fcn.0040d31e
mov dword [0x508060], eax
jmp 0x440967
mov dword [0x508060], ebp
push 0x4014
call fcn.00444556
pop ecx
cmp eax, ebp
je 0x44098a
push dword [0x508060]
mov ecx, eax
call fcn.0040747f
mov dword [0x508064], eax
jmp 0x440990
mov dword [0x508064], ebp
push 0x4028
call fcn.00444556
pop ecx
cmp eax, ebp
je 0x4409b3
push dword [0x508060]
mov ecx, eax
call fcn.004012c3
mov dword [0x508068], eax
jmp 0x4409b9
mov dword [0x508068], ebp
push 0x24
call fcn.00444556
pop ecx
cmp eax, ebp
je 0x4409d3
mov ecx, eax
call fcn.004418f8
mov dword [0x50806c], eax
jmp 0x4409d9
mov dword [0x50806c], ebp
push 0x30
call fcn.00444556
pop ecx
cmp eax, ebp
je 0x4409f3
mov ecx, eax
call fcn.00443f0f
mov dword [0x508070], eax
jmp 0x4409f9
mov dword [0x508070], ebp
push 0x1ac
call fcn.00444556
pop ecx
cmp eax, ebp
je 0x440a16
mov ecx, eax
call fcn.004423a3
mov dword [0x508074], eax
jmp 0x440a1c
mov dword [0x508074], ebp
push 0x6a
push dword [0x505c24]
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebp
mov dword [0x505c70], eax
call fcn.0040e14a
push edi
call fcn.00445314
push eax
push str.DarkMode
push esi
call ebx
push edi
push 1
push str.DarkScrl
push esi
mov dword [0x505c0c], eax
call ebx
mov dword [0x505c10], eax
cmp dword [0x505c0c], ebp
je 0x440a6b
mov dword [0x505c0c], 1
push dword [esp + 0x578]
call fcn.0043ffa9
test eax, eax
jne 0x440a83
push 2
pop eax
jmp 0x440fa4
push edi
push 1
push str.ShowVerInCaption
push esi
call ebx
test eax, eax
je 0x440b56
xor eax, eax
push 0x7e
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6e]
push ebp
push eax
call fcn.00444396
add esp, 0xc
push 0x3f
lea eax, [esp + 0x6c]
push eax
push dword [0x505c28]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebp
je 0x440b56
mov cx, word [0x5059ce]
lea eax, [esp + eax*2 + 0x68]
cmp cx, 0xa
jb 0x440b06
movzx ecx, cx
push ecx
movzx ecx, word [0x5059cc]
push ecx
movzx ecx, word [0x5059ca]
push ecx
movzx ecx, word [0x5059c8]
push ecx
push str._V_u._u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x440b2d
movzx ecx, word [0x5059cc]
push ecx
movzx ecx, word [0x5059ca]
push ecx
movzx ecx, word [0x5059c8]
push ecx
push str._V_u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp dword [0x505634], ebp
je 0x440b45
push str.___Win32_
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x68]
push eax
push dword [0x505c28]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.USER32.dll_CreateMenu]
mov esi, dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x5080f4], eax
call esi
mov dword [0x5080f8], eax
call esi
mov dword [0x5080fc], eax
call esi
mov dword [0x508100], eax
call esi
mov dword [0x508104], eax
call esi
mov dword [0x508108], eax
call esi
mov dword [0x50810c], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
mov edi, str.Pop
push edi
push dword [0x5080f8]
mov dword [0x508110], eax
push 0x10
pop ebx
push ebx
push dword [0x5080f4]
call esi
push edi
push dword [0x508108]
push ebx
push dword [0x5080f4]
call esi
push edi
push dword [0x50810c]
push ebx
push dword [0x5080f4]
call esi
push edi
push dword [0x508110]
push ebx
push dword [0x5080f4]
call esi
push str.DevId
push 0xa4d8
push ebp
push dword [0x508100]
call esi
push str.Safely_Remove
push 0xa488
push ebp
push dword [0x5080f8]
call esi
push str.Restart_Device
push 0xa489
push ebp
push dword [0x5080f8]
call esi
mov ebx, 0x450518
push ebx
push ebp
mov edi, 0x800
push edi
push dword [0x5080f8]
call esi
push str.Restart_Port
push 0xa48a
push ebp
push dword [0x5080f8]
call esi
push ebx
push ebp
push edi
push dword [0x5080f8]
call esi
push str.Copy_Tree_from_here
push dword [0x5080fc]
push 0x10
push dword [0x5080f8]
call esi
push 0x474ec4
push 0xa474
push ebp
push dword [0x5080fc]
call esi
push 0x474eb4
push 0xa475
push ebp
push dword [0x5080fc]
call esi
push str.Copy_Report_from_here
push 0xa476
push ebp
push dword [0x5080f8]
call esi
push str.Copy...
push dword [0x508100]
push 0x10
push dword [0x5080f8]
call esi
push ebx
push ebp
push edi
push dword [0x5080f8]
call esi
push str.Regedit...
push dword [0x508104]
push 0x10
push dword [0x5080f8]
call esi
push ebx
push ebp
push edi
push dword [0x5080f8]
call esi
push str.Device_Properties
push 0xa492
push ebp
push dword [0x5080f8]
call esi
push str.Copy
push 0xb600
push ebp
push dword [0x508108]
call esi
push ebx
push 0xb602
push edi
push dword [0x508108]
call esi
push str.Select_All
push 0xb603
push ebp
push dword [0x508108]
call esi
push str.Copy
push 0xb600
push ebp
push dword [0x50810c]
call esi
push str.Paste
push 0xb601
push ebp
push dword [0x50810c]
call esi
push ebx
push 0xb602
push edi
push dword [0x50810c]
call esi
push str.Select_All
push 0xb603
push ebp
push dword [0x50810c]
call esi
push str.Copy
push 0xb600
push ebp
push dword [0x508110]
call esi
push str.Paste
push 0xb601
push ebp
push dword [0x508110]
call esi
push ebx
push 0xb602
push edi
push dword [0x508110]
call esi
push str.Select_All
push 0xb603
push ebp
push dword [0x508110]
call esi
push 0x6b
push dword [0x505c24]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov dword [0x505cb0], eax
jmp 0x440e1e
cmp esi, 0xffffffff
je 0x440e2e
lea eax, [esp + 0x34]
push eax
push dword [0x505cb0]
push dword [0x505c28]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x440e1e
lea eax, [esp + 0x34]
push eax
push dword [0x505c28]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x440e1e
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebp
push ebp
push ebp
lea eax, [esp + 0x40]
push eax
call edi
mov esi, eax
cmp esi, ebp
jne 0x440dd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [esp + 0x40]
xor edi, edi
push str.lastmsg_u__res_i_err_u
inc edi
push edi
call fcn.00449e4d
add esp, 0x14
push ebp
push ebp
call fcn.0042f983
mov eax, dword [0x4bb8b0]
cmp eax, ebp
je 0x440e62
push eax
call fcn.004445cb
pop ecx
call fcn.00447681
mov esi, 0x505ba4
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 0x505bbc
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 0x440f4b
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x440f44
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x5c]
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.00429a2b
push eax
push str.timerunning_s
push edi
call fcn.00449e4d
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call fcn.00429a2b
push eax
push str.timekernel__s
push edi
call fcn.00449e4d
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call fcn.00429a2b
push eax
push str.timeuser____s
push edi
call fcn.00449e4d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0044c65f
push 0x49dad4
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyClassImageList]
call fcn.00426850
call fcn.0044a318
call fcn.0044b3dd
mov eax, dword [0x5080ec]
cmp eax, ebp
je 0x440f7a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.0042f696
cmp word [0x505d50], bp
jne 0x440f91
cmp word [0x505f58], bp
je 0x440f9f
cmp dword [0x506368], ebp
jne 0x440f9f
mov dword [0x50636c], edi
mov eax, dword [0x50636c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x558
ret 0x10