Function at 0x4472b7
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 [0x510638], eax
mov eax, dword [esp + 0x4dc]
push str.psapi.dll
mov dword [0x510698], eax
call fcn.0042a347
mov dword [0x512ce8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x510564], eax
call fcn.00428e3c
test eax, eax
je 0x447303
mov dword [0x510690], 1
jmp 0x447308
call fcn.00428e1f
push ebx
push ebp
push esi
push edi
call fcn.00433cf5
push 0x510068
call fcn.0042ffcb
call fcn.0042ffa6
call fcn.0042cb05
call fcn.0044e694
push 0x40
push 0x510190
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0x40
push 0x50fc70
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, 0x50fa68
push ebp
call fcn.0042d8ef
push 0x510220
push ebp
call fcn.0042af31
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebp
mov edi, 0x50fcf0
push edi
call ebx
push str..ini
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
call fcn.0042e1d9
push edi
push dword [0x510654]
mov esi, 0x45acf8
push str.ShowDebug
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0xffffffffffffffff
push str.DpiAwareness
push esi
mov dword [0x510644], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x4a7ae0], eax
cmp eax, 0xffffffff
jne 0x4473c5
push 4
pop eax
push edi
push eax
push str.DpiAwareness
push esi
mov dword [0x4a7ae0], eax
call fcn.0042afb2
push dword [0x4a7ae0]
call fcn.0042e439
cmp dword [0x4a7ae0], 4
jl 0x4473ed
call fcn.00430fd5
mov dword [0x4a7ae4], eax
call fcn.0043102a
mov dword [0x4a7ad8], eax
push str.Riched32.dll
call fcn.0042a347
mov dword [0x510694], eax
test eax, eax
jne 0x44740a
mov eax, 0xfe
jmp 0x447e0d
call fcn.00453418
push 0x510608
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x510620
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x510428
push ebp
call fcn.0042959a
push 0x40
push 0x50f958
push str._COMPUTERNAME_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x40
push 0x50f8d8
push str._USERNAME_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call fcn.0042a395
mov dword [0x510688], eax
call fcn.0042a3c5
push edi
push 1
push str.CrashDump
push esi
mov dword [0x51068c], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x447492
push 0x44b454
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00428f91
xor eax, eax
inc eax
cmp dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
jle 0x44765d
mov ebp, dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + eax*4 + 0x68]
and dword [esp + 0x18], 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jb 0x44771e
movzx eax, word [esi]
cmp ax, 0x2d
je 0x4474e8
cmp ax, 0x2f
jne 0x44771e
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x5a
je 0x4476fd
cmp eax, 0x52
jne 0x447529
lea eax, [esi + 6]
push eax
push 0x5109d8
mov dword [esp + 0x20], 1
call ebx
push 0x5109d8
call ebp
and dword [esp + 0x4f8], 0
mov dword [0x51064c], 1
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x58
jne 0x447561
lea eax, [esi + 6]
push eax
push 0x510be0
mov dword [esp + 0x20], 1
call ebx
push 0x510be0
call ebp
and dword [esp + 0x4f8], 0
mov dword [0x51064c], 1
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x4f
jne 0x44758f
lea eax, [esi + 6]
push eax
push 0x510de8
mov dword [esp + 0x20], 1
call ebx
push 0x510de8
call ebp
and dword [esp + 0x4f8], 0
movzx eax, word [esi + 2]
and eax, 0xffffffdf
cmp eax, 0x4c
jne 0x4475f0
cmp dword [0x510080], 0x500
jbe 0x4475eb
lea eax, [esi + 4]
push eax
call fcn.00429850
push 0x3d
push esi
mov dword [0x51cdd4], eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
jne 0x4475cf
push 0x3a
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x4475eb
add eax, 2
push eax
push 0x51cdd8
call ebx
push 0x51cdd8
call ebp
mov dword [0x51cfe0], 1
xor eax, eax
inc eax
jmp 0x4475f4
mov eax, dword [esp + 0x18]
movzx ecx, word [esi + 2]
and ecx, 0xffffffdf
cmp ecx, 0x46
jne 0x447608
xor eax, eax
inc eax
mov dword [0x51cfe8], eax
movzx ecx, word [esi + 2]
and ecx, 0xffffffdf
cmp ecx, 0x53
jne 0x447639
movzx eax, word [esi + 4]
cmp ax, 0x3a
je 0x447624
cmp ax, 0x3d
jne 0x447636
lea eax, [esi + 6]
push eax
push 0x5107d0
call ebx
push 0x5107d0
call ebp
xor eax, eax
inc eax
test eax, eax
je 0x44771e
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x20]
jl 0x4474b8
mov esi, 0x45acf8
mov ebp, 0x50fa68
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x44769b
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x44769b
push str.stdout
push 0x5109d8
call ebx
and dword [esp + 0x4f8], 0
mov dword [0x51064c], 1
cmp dword [0x51064c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jne 0x44777c
push edi
push 0
push str.OneInstance
push esi
call ebx
push eax
push 0x9dc1
mov dword [0x512cbc], eax
call fcn.00434e1d
cmp dword [0x512cbc], 0
je 0x44777c
push ebp
push str..xml
push dword [0x4a7ad0]
push str.32770
call fcn.0042d0d9
test eax, eax
je 0x44777c
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x447774
xor eax, eax
add esi, 6
push esi
mov dword [0x51cdd4], eax
mov dword [0x51cfe0], eax
mov dword [0x51cfe4], eax
call fcn.0043113d
xor eax, eax
jmp 0x447e0d
xor eax, eax
cmp word [esi + 2], 0x3f
sete al
mov esi, eax
mov eax, 0x457a19
test esi, esi
jne 0x447738
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 0x45aca0
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 0x447e0d
call fcn.0045180d
xor ebp, ebp
cmp dword [0x51cfe0], ebp
je 0x447834
push str._Win32_
push 0x510434
push str.________UsbTreeView_V_s__S________
push 1
call fcn.00451479
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
push dword [0x510078]
push dword [0x51007c]
push 0x5100a0
push dword [0x510074]
push dword [0x510070]
push dword [0x51006c]
push dword [0x510068]
push str.OS_version_u._u._u__SP_u___s_suite_X_type_i_acp_u
push 1
call fcn.00451479
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.00451479
mov ebp, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
push 0xfffffffffffffff5
call ebp
test eax, eax
je 0x447832
push 0xfffffffffffffff5
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
push eax
push 0xfffffffffffffff5
call ebp
push eax
push str.stdout0x_08Ix_filetype_u
push 1
call fcn.00451479
add esp, 0x10
xor ebp, ebp
call fcn.00453d73
push 0x194
call fcn.0044b31e
pop ecx
cmp eax, ebp
je 0x447856
mov ecx, eax
call fcn.0040ebc3
mov dword [0x512c5c], eax
jmp 0x44785c
mov dword [0x512c5c], ebp
push 0x4014
call fcn.0044b31e
pop ecx
cmp eax, ebp
je 0x44787f
push dword [0x512c5c]
mov ecx, eax
call fcn.00407f77
mov dword [0x512c60], eax
jmp 0x447885
mov dword [0x512c60], ebp
push 0x4028
call fcn.0044b31e
pop ecx
cmp eax, ebp
je 0x4478a8
push dword [0x512c5c]
mov ecx, eax
call fcn.004012df
mov dword [0x512c64], eax
jmp 0x4478ae
mov dword [0x512c64], ebp
push 0x24
call fcn.0044b31e
pop ecx
cmp eax, ebp
je 0x4478c8
mov ecx, eax
call fcn.004487ae
mov dword [0x512c68], eax
jmp 0x4478ce
mov dword [0x512c68], ebp
push 0x30
call fcn.0044b31e
pop ecx
cmp eax, ebp
je 0x4478e8
mov ecx, eax
call fcn.0044adc8
mov dword [0x512c6c], eax
jmp 0x4478ee
mov dword [0x512c6c], ebp
push 0x1ac
call fcn.0044b31e
pop ecx
cmp eax, ebp
je 0x44790b
mov ecx, eax
call fcn.0044925c
mov dword [0x512c70], eax
jmp 0x447911
mov dword [0x512c70], ebp
push 0x7f84
push ebp
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebp
mov dword [0x5106e8], eax
call fcn.0040fefc
push edi
call fcn.0044c29a
push eax
push str.DarkMode
push esi
call ebx
push edi
push 1
push str.DarkScrl
push esi
mov dword [0x510680], eax
call ebx
mov dword [0x510684], eax
cmp dword [0x510680], ebp
je 0x44795e
mov dword [0x510680], 1
call fcn.0042d809
cmp eax, 0x20
je 0x44796e
mov dword [0x510680], ebp
push dword [esp + 0x4f8]
call fcn.00446e80
test eax, eax
jne 0x447986
push 2
pop eax
jmp 0x447e0d
push edi
push 1
push str.ShowVerInCaption
push esi
call ebx
test eax, eax
je 0x447a9a
xor eax, eax
push 0x1fe
mov word [esp + 0xec], ax
lea eax, [esp + 0xee]
push ebp
push eax
call fcn.0044b15e
add esp, 0xc
push 0xff
lea eax, [esp + 0xec]
push eax
push dword [0x51069c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebp
je 0x447a9a
mov cx, word [0x51042e]
lea eax, [esp + eax*2 + 0xe8]
cmp cx, 0xa
jb 0x447a1b
movzx ecx, cx
push ecx
movzx ecx, word [0x51042c]
push ecx
movzx ecx, word [0x51042a]
push ecx
movzx ecx, word [0x510428]
push ecx
push str._V_u._u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x447a42
movzx ecx, word [0x51042c]
push ecx
movzx ecx, word [0x51042a]
push ecx
movzx ecx, word [0x510428]
push ecx
push str._V_u._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x47e2b4
mov edi, 0x5100a0
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x447a86
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x47e2ac
lea eax, [esp + 0xec]
push eax
call esi
push edi
lea eax, [esp + 0xec]
push eax
call esi
push 0x456f1c
lea eax, [esp + 0xec]
push eax
call esi
lea eax, [esp + 0xe8]
push eax
push dword [0x51069c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.USER32.dll_CreateMenu]
mov esi, dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x512cf0], eax
call esi
mov dword [0x512cf4], eax
call esi
mov dword [0x512cf8], eax
call esi
mov dword [0x512cfc], eax
call esi
mov dword [0x512d00], eax
call esi
mov dword [0x512d04], eax
call esi
mov dword [0x512d08], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
mov edi, str.Pop
push edi
push dword [0x512cf4]
mov dword [0x512d0c], eax
push 0x10
pop ebx
push ebx
push dword [0x512cf0]
call esi
push edi
push dword [0x512d04]
push ebx
push dword [0x512cf0]
call esi
push edi
push dword [0x512d08]
push ebx
push dword [0x512cf0]
call esi
push edi
push dword [0x512d0c]
push ebx
push dword [0x512cf0]
call esi
push str.DevId
push 0xa4d8
push 0
push dword [0x512cfc]
call esi
push str.Copy
push 0xa7f8
push 0
push dword [0x512d04]
call esi
push 0x457770
push 0xa7fa
mov ebp, 0x800
push ebp
push dword [0x512d04]
call esi
mov ebx, str.Select_All
push ebx
mov edi, 0xa7fb
push edi
push 0
push dword [0x512d04]
call esi
push str.Copy
push 0xa7f8
push 0
push dword [0x512d08]
call esi
push str.Paste
push 0xa7f9
push 0
push dword [0x512d08]
call esi
push 0x457770
push 0xa7fa
push ebp
push dword [0x512d08]
call esi
push ebx
push edi
push 0
push dword [0x512d08]
call esi
push str.Copy
push 0xa7f8
push 0
push dword [0x512d0c]
call esi
push str.Paste
push 0xa7f9
push 0
push dword [0x512d0c]
call esi
push 0x457770
push 0xa7fa
push ebp
push dword [0x512d0c]
call esi
push ebx
push edi
xor ebx, ebx
push ebx
push dword [0x512d0c]
call esi
push 0x6b
push dword [0x510698]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
mov dword [0x510724], eax
push ebx
lea eax, [esp + 0x38]
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x447c95
cmp esi, 0xffffffff
je 0x447c97
lea eax, [esp + 0x2c]
push eax
push dword [0x510724]
push dword [0x51069c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x447c83
lea eax, [esp + 0x2c]
push eax
push dword [0x51069c]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x447c83
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 ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x447c38
jmp 0x447c97
xor ebx, ebx
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.00451479
add esp, 0x14
push ebx
push ebx
call fcn.004340de
mov eax, dword [0x4c5980]
cmp eax, ebx
je 0x447ccb
push eax
call fcn.0044b359
pop ecx
call fcn.0044e6e3
mov esi, 0x510608
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 0x510620
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x447db4
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 0x447dad
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.0042cc70
push eax
push str.timerunning_s
push edi
call fcn.00451479
add esp, 0xc
lea eax, [esp + 0x48]
push eax
call fcn.0042cc70
push eax
push str.timekernel__s
push edi
call fcn.00451479
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call fcn.0042cc70
push eax
push str.timeuser____s
push edi
call fcn.00451479
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00453cb0
push 0x4a7b00
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyClassImageList]
call fcn.00428d9a
call fcn.00451967
call fcn.00452a2e
mov eax, dword [0x512ce8]
cmp eax, ebx
je 0x447de3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00433d50
cmp word [0x5109d8], bx
jne 0x447dfa
cmp word [0x510be0], bx
je 0x447e08
cmp dword [0x5107cc], ebx
jne 0x447e08
mov dword [0x510ff0], edi
mov eax, dword [0x510ff0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4d8
ret 0x10