Function at 0xa2c887
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0xa45214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0xa451c0
mov ebx, ecx
push edi
push eax
mov dword [0xa4515c], eax
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitializeCriticalSection]
push dword [0xa4515c]
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
push dword [0xa4515c]
xor edi, edi
mov dword [0xa45164], edi
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
push 1
push 0xa41877
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_SetConsoleCtrlHandler]
call fcn.00a21c4a
call fcn.00a22701
mov dword [0xa4516c], eax
call fcn.00a2570e
mov ecx, ebx
mov dword [0xa45170], eax
call fcn.00a2c1cd
mov esi, dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
call esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xa2c907
sub eax, edx
sar eax, 1
inc eax
cmp eax, 0x2000
ja 0xa3c72f
call esi
mov esi, 0xa54840
mov edx, 0x2000
push eax
mov ecx, esi
call fcn.00a21417
push edi
mov edx, 0x104
mov ecx, 0xa45a20
call fcn.00a2557c
call fcn.00a2ca81
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0xa2c94e
sub esi, ecx
sar esi, 1
push esi
push ecx
mov ecx, ebx
call fcn.00a2ced6
push 0x5c
pop eax
cmp word [0xa45a20], ax
je 0xa3c745
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push 0xa45200
push eax
mov dword [0xa45160], eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetCPInfo]
call fcn.00a2ccee
push 0x20c
push edi
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov dword [0xa45158], eax
test eax, eax
je 0xa2c9c2
push 0x104
push eax
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleTitleW]
test eax, eax
je 0xa3c792
cmp dword [0xa450ac], edi
je 0xa30501
cmp dword [ebx + 8], edi
je 0xa3c7a1
push 0xa2c868
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov esi, dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push 0xa2ca44
push eax
mov dword [0xa45064], eax
call esi
push 0xa2ca50
push dword [0xa45064]
mov dword [0xa45198], eax
call esi
push 0xa2ca64
push dword [0xa45064]
mov dword [0xa451a0], eax
call esi
mov dword [0xa45190], eax
cmp dword [ebx], edi
jne 0xa2ca2c
cmp dword [ebx + 4], edi
jne 0xa2ca2c
cmp dword [ebx + 8], edi
je 0xa2ca2f
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a213b9
mov esp, ebp
pop ebp
ret
xor ecx, ecx
inc ecx
call fcn.00a25318
test eax, eax
je 0xa2c9ce
cmp word [0xa45054], di
jne 0xa30544
lea eax, [ebp - 0x5c]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetStdHandle]
push eax
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0xa30554
mov ax, word [ebp - 0x54]
mov word [0xa45054], ax
test ax, ax
je 0xa2c9ce
mov ecx, dword [0xa45054]
call fcn.00a30561
jmp 0xa2c9ce
mov ax, word [0xa45054]
jmp 0xa3053b
push edi
push 0x400023df
call fcn.00a2e452
pop ecx
pop ecx
xor ecx, ecx
inc ecx
call fcn.00a2bc91
int3
cmp word [0xa45a22], ax
jne 0xa2c976
cmp byte [0xa60b40], 0
jne 0xa2c976
mov esi, 0xa45a20
push esi
push 1
push 0x400023c8
call fcn.00a2e452
add esp, 0xc
push 0x104
push esi
call dword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetWindowsDirectoryW]
test eax, eax
je 0xa3c73c
xor edx, edx
mov ecx, esi
call fcn.00a2577b
jmp 0xa2c976
mov eax, dword [0xa45158]
xor ecx, ecx
mov word [eax], cx
jmp 0xa2c9c2
call fcn.00a413fd
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.00a41823
lea eax, [ebp - 0x44]
push eax
push 1
push 0x2350
call fcn.00a2e4e8
push 0xa2bd44
call fcn.00a26570
add esp, 0x10
test esi, esi
je 0xa3c7eb
push esi
push 0xa2bd4c
call fcn.00a26570
push 0xa2bd44
call fcn.00a26570
add esp, 0xc
jmp 0xa3c7f5
push edi
push 8
call fcn.00a2e452
pop ecx
pop ecx
push esi
call dword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_GlobalFree]
jmp 0xa2c9d7