Function at 0x402300
Capabilities:
Accept command line arguments
Get common file path
Get graphical window text
Get program files directory
Get session user name

Disassembly:
push 0x2b4
mov eax, 0x417be2
call fcn.0040b965
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x2c0], edi
mov dword [ebp - 0x2bc], esi
push esi
push 0x419ca4
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 1
call fcn.00406f79
or ebx, 0xffffffff
cmp eax, ebx
jne 0x402364
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.00406ee5
push esi
push 1
lea ecx, [ebp + 8]
call fcn.00401469
push esi
push 1
lea ecx, [ebp + 0x24]
call fcn.00401469
mov eax, edi
jmp 0x40281f
push esi
push str._TEMP_
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x4023c3
lea eax, [ebp - 0x134]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea eax, [ebp - 0x2b8]
push eax
push 6
push esi
push str._TEMP_
lea eax, [ebp + 8]
push eax
call fcn.00406f79
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406f51
jmp 0x402364
push esi
mov edi, str._WIN_
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x4023f6
lea eax, [ebp - 0x134]
push eax
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x134]
push eax
push 5
push esi
push edi
jmp 0x4023ae
push esi
mov edi, str._USER_
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x402427
lea eax, [ebp - 0x134]
push eax
push esi
push esi
push 0x28
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x134]
push eax
push 6
jmp 0x4023f2
push esi
mov edi, str._PROGRAMFILES_
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x402458
lea eax, [ebp - 0x134]
push eax
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x134]
push eax
push 0xe
jmp 0x4023f2
push esi
mov edi, str._SYSTEM_
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x40248c
lea eax, [ebp - 0x134]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x134]
push eax
push 8
jmp 0x4023f2
push esi
push str._RUNTIME_
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x402513
push 0x104
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0x1c
lea eax, [ebp - 0x134]
mov ecx, esp
mov dword [ebp - 0x2bc], esp
push eax
call fcn.00406ec3
lea edi, [ebp - 0x2c]
call fcn.00401b16
cmp dword [eax + 0x18], 0x10
jb 0x4024dc
mov eax, dword [eax + 4]
jmp 0x4024df
add eax, 4
push eax
lea eax, [ebp - 0x134]
push 0x104
push eax
call fcn.0040a62c
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401469
lea eax, [ebp - 0x134]
push eax
push 9
push esi
push str._RUNTIME_
jmp 0x4023ae
push esi
mov edi, str._OUTPUTCMD_
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x4025cf
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406ec3
push 3
push 0x419cf4
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.00406f79
cmp eax, ebx
lea ecx, [ebp - 0x2c]
je 0x40258e
add eax, 2
push eax
push esi
call fcn.00401523
cmp dword [ebp - 0x18], 1
jb 0x40258b
push esi
push str._pass__
lea eax, [ebp - 0x2c]
push eax
call fcn.00406f79
cmp eax, ebx
jne 0x40258b
push esi
push str._unpack__
lea eax, [ebp - 0x2c]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x402598
lea ecx, [ebp - 0x2c]
push 0x419bf7
call fcn.00401446
push esi
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
push ebx
push esi
lea ecx, [ebp - 0x2c]
push ecx
push 0xb
mov esi, eax
lea edi, [ebp + 8]
call fcn.004071bc
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401469
or ebx, 0xffffffff
xor esi, esi
jmp 0x402364
push esi
push str._OUTPUTNAME_
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x40266d
mov edi, 0x104
push edi
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0x1c
lea eax, [ebp - 0x134]
mov ecx, esp
mov dword [ebp - 0x2bc], esp
push eax
call fcn.00406ec3
lea ebx, [ebp - 0x2c]
call fcn.00401b88
cmp dword [eax + 0x18], 0x10
jb 0x402624
mov eax, dword [eax + 4]
jmp 0x402627
add eax, 4
push eax
lea eax, [ebp - 0x134]
push edi
push eax
call fcn.0040a62c
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401469
lea eax, [ebp - 0x134]
push eax
push 0xc
push esi
push str._OUTPUTNAME_
lea eax, [ebp + 8]
push eax
call fcn.00406f79
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406f51
or ebx, 0xffffffff
jmp 0x402364
push esi
mov edi, str._UNPACK_
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
push esi
lea eax, [ebp + 8]
je 0x4026b6
cmp dword [ebp + 0x38], esi
push edi
push eax
jne 0x40269a
call fcn.00406f79
push ebx
push esi
push 0x41e1ec
jmp 0x4026a5
call fcn.00406f79
push ebx
push esi
lea ecx, [ebp + 0x24]
push ecx
push 8
mov esi, eax
lea edi, [ebp + 8]
call fcn.004071bc
jmp 0x4025c5
mov edi, str._DATE_
push edi
push eax
call fcn.00406f79
cmp eax, ebx
je 0x402707
lea esi, [ebp - 0x2c]
call fcn.00402236
mov esi, eax
mov byte [ebp - 4], 3
xor ebx, ebx
push ebx
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
push 0xffffffffffffffff
push ebx
push esi
push 6
mov esi, eax
lea edi, [ebp + 8]
call fcn.004071bc
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401469
xor esi, esi
jmp 0x402665
push esi
mov edi, str._TIME_
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x40272b
lea esi, [ebp - 0x2c]
call fcn.0040229b
mov esi, eax
mov byte [ebp - 4], 4
jmp 0x4026d4
push esi
mov edi, str._USERNAME_
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x402765
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2bc], 0x20
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x30]
push eax
push 0xa
jmp 0x4023f2
push esi
mov edi, str._DESKTOP_
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x402785
push str._USER_Desktop_
push 9
jmp 0x4023f2
push esi
mov edi, str._ACTIVEWND_
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x4027c4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
je 0x4027b6
push 0x80
lea ecx, [ebp - 0x1b4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x1b4]
push eax
push 0xb
jmp 0x4023f2
push esi
mov edi, 0x419d6c
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
cmp eax, ebx
je 0x4027f4
push 0x419c34
push 2
push esi
push edi
lea eax, [ebp + 8]
push eax
call fcn.00406f79
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406f51
mov ecx, dword [ebp - 0x2c0]
lea eax, [ebp + 8]
push eax
call fcn.00406ee5
push esi
push 1
lea ecx, [ebp + 8]
call fcn.00401469
push esi
push 1
lea ecx, [ebp + 0x24]
call fcn.00401469
mov eax, dword [ebp - 0x2c0]
call fcn.0040b9af
ret 0x38