Function at 0x419290
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x220]
push ebx
mov ebx, eax
sub esp, 0x64c
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], 0x428976
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
sub eax, 1
sub esp, 0xc
cmp eax, 0x102
jbe 0x4192e6
xor eax, eax
mov edx, 0x24
jmp 0x4192da
movzx edx, word [eax + str._P_G]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x4192d3
test ebx, ebx
je 0x4193a0
mov dword [ebp - 0x630], 0xa000d
lea ebx, [ebp - 0x62c]
lea edi, [ebp - 0x630]
xor eax, eax
mov word [ebx], ax
movzx eax, word [esi]
test ax, ax
je 0x41932d
cmp ax, 0x24
je 0x419341
mov word [ebx], ax
add esi, 2
xor eax, eax
add ebx, 2
mov word [ebx], ax
movzx eax, word [esi]
test ax, ax
jne 0x419311
mov edx, edi
mov eax, 0xfffffff5
call dbg.WCMD_output_asis_handle
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, word [esi + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_toupper]
sub eax, 0x24
cmp eax, 0x3b
ja case.0x419356.37
jmp dword [eax*4 + 0x428990]
mov eax, dword [0x42f1c4]
test eax, eax
je case.0x419356.37
mov eax, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], 0x2b
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memset]
mov eax, dword [0x42f1c4]
mov eax, dword [eax + 4]
lea ebx, [ebx + eax*2]
lea esi, [esi]
add esi, 4
jmp 0x419304
lea edi, [ebp - 0x630]
mov ebx, edi
jmp 0x419304
mov edx, 0xa
add ebx, 2
add esi, 4
mov word [ebx - 2], dx
jmp 0x419304
mov eax, 0x24
add ebx, 2
add esi, 4
mov word [ebx - 2], ax
jmp 0x419304
mov eax, 0x26
add ebx, 2
add esi, 4
mov word [ebx - 2], ax
jmp 0x419304
mov ecx, 0x7c
add ebx, 2
add esi, 4
mov word [ebx - 2], cx
jmp 0x419304
mov edx, 0x28
add ebx, 2
add esi, 4
mov word [ebx - 2], dx
jmp 0x419304
mov eax, ebx
mov dword [esp + 0x10], ebx
sub eax, edi
mov dword [esp + 0xc], 0
sar eax, 1
mov dword [esp + 8], 0
neg eax
mov dword [esp + 4], 1
add eax, 0x104
mov dword [esp], 0x400
mov dword [esp + 0x14], eax
call dword [sym.imp.kernel32.dll_GetDateFormatW]
sub esp, 0x18
cmp word [ebx], 0
je case.0x419356.37
lea esi, [esi]
nop
add ebx, 2
cmp word [ebx], 0
jne 0x419470
add esi, 4
jmp 0x419304
mov eax, 0x1b
add ebx, 2
add esi, 4
mov word [ebx - 2], ax
jmp 0x419304
mov eax, 0x29
add ebx, 2
add esi, 4
mov word [ebx - 2], ax
jmp 0x419304
mov eax, 0x3e
add ebx, 2
add esi, 4
mov word [ebx - 2], ax
jmp 0x419304
mov eax, 8
add ebx, 2
add esi, 4
mov word [ebx - 2], ax
jmp 0x419304
mov eax, 0x3c
add ebx, 2
add esi, 4
mov word [ebx - 2], ax
jmp 0x419304
lea eax, [ebp - 0x428]
mov dword [esp], 0x104
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
test eax, eax
je case.0x419356.37
movzx eax, word [ebp - 0x428]
add ebx, 2
mov word [ebx - 2], ax
jmp case.0x419356.37
lea eax, [ebp - 0x428]
mov dword [esp], 0x104
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
test eax, eax
je case.0x419356.37
cmp word [ebx], 0
mov edx, ebx
je 0x419569
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x419560
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebp + eax - 0x428]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x419570
cmp word [ebx], 0
je case.0x419356.37
nop
add ebx, 2
cmp word [ebx], 0
jne 0x419590
jmp case.0x419356.37
mov eax, 0x3d
add ebx, 2
add esi, 4
mov word [ebx - 2], ax
jmp 0x419304
mov ecx, 0x20
add ebx, 2
add esi, 4
mov word [ebx - 2], cx
jmp 0x419304
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_GetTimeFormatW]
sub esp, 0x18
cmp word [ebx], 0
je case.0x419356.37
nop
add ebx, 2
cmp word [ebx], 0
jne 0x419610
add esi, 4
jmp 0x419304
cmp word [ebx], 0
mov edx, ebx
je 0x419639
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x419630
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x4371e0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x419640
cmp word [ebx], 0
je case.0x419356.37
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x419660
add esi, 4
jmp 0x419304