Function at 0x14005c4a4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov eax, 0x1000000
lea rcx, [0x140129460]
xor esi, esi
mov qword [0x140129568], rax
xor edx, edx
mov qword [0x140128a28], rsi
mov r8d, 0x104
mov qword [0x140128c48], rax
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call sub.msvcrt.dll_memset
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x14005c7fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14005c7fd
mov ecx, esi
cmp word [rsp + 0x20], si
je 0x14005c552
inc rcx
cmp word [rsp + rcx*2 + 0x20], si
jne 0x14005c548
lea r8, [rsp + 0x20]
cmp rcx, 2
jb 0x14005c56f
cmp word [rsp + 0x22], 0x3a
lea rax, [rsp + 0x24]
cmovne rax, r8
mov r8, rax
lea rdx, [rsp + 0x20]
lea rdx, [rdx + rcx*2]
mov rax, rdx
jmp 0x14005c596
mov rcx, rdx
sub rdx, 2
cmp word [rdx], 0x2e
je 0x14005c59d
cmp word [rdx], 0x2f
je 0x14005c5bc
cmp word [rdx], 0x5c
je 0x14005c5bc
cmp rdx, r8
jne 0x14005c57d
jmp 0x14005c5bf
mov rax, rdx
jmp 0x14005c5b5
mov rcx, rdx
sub rdx, 2
cmp word [rdx], 0x2f
je 0x14005c5bc
cmp word [rdx], 0x5c
je 0x14005c5bc
cmp rdx, r8
jne 0x14005c5a2
jmp 0x14005c5bf
mov rdx, rcx
sub rax, rdx
sar rax, 1
je 0x14005c7db
mov r8, rax
lea rcx, [0x140123dc8]
call fcn.140045fb0
test al, al
je 0x14005c7db
lea rcx, str.dbg:_initializing..._n
call fcn.14005c3dc
lea rbx, [0x140128c50]
mov r8d, 0x400
mov rdx, rbx
lea rcx, [0x1400e0938]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
jne 0x14005c61c
mov word [0x140128c50], si
mov rdx, rbx
lea rcx, str.Symbol_Path____ws__n
call fcn.14005c3dc
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov ecx, eax
xor r8d, r8d
inc rcx
mov rdx, rbx
mov qword [0x140129458], rcx
call qword [sym.imp.dbghelp.dll_SymInitializeW]
nop dword [rax + rax]
test eax, eax
jne 0x14005c696
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 2
mov ebx, eax
call fcn.1400636d4
mov r8d, ebx
lea rdx, str.WPPFMT_:_error_:_0x_x_from_SymInitialize___n
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fprintf]
nop dword [rax + rax]
mov qword [0x140129458], rsi
jmp 0x14005c82e
mov ecx, 0x10813
call qword [sym.imp.dbghelp.dll_SymSetOptions]
nop dword [rax + rax]
mov edx, eax
mov dword [0x140128c44], eax
lea rcx, str.SymOpts__0x_x_n
call fcn.14005c3dc
mov rcx, qword [0x140129458]
lea rdx, [0x14005c460]
xor r8d, r8d
call qword [sym.imp.dbghelp.dll_SymRegisterCallback64]
nop dword [rax + rax]
test eax, eax
jne 0x14005c700
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 2
mov ebx, eax
call fcn.1400636d4
lea rdx, str.WPPFMT_:_error_:_0x_x_from_SymRegisterCallback64___n
jmp 0x14005c81c
mov eax, 0x40
mov word [0x140128a30], si
mov ecx, 0xe00
mov word [0x140128a34], ax
mov word [0x140128a38], ax
mov word [0x140128a24], si
mov byte [0x14012784c], sil
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov ecx, Ordinal_1537
mov qword [0x140129988], rax
mov rdi, rax
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov qword [0x140129778], rax
mov rbx, rax
test rdi, rdi
je 0x14005c791
test rax, rax
je 0x14005c791
xor edx, edx
mov r8d, 0xe00
mov rcx, rdi
call sub.msvcrt.dll_memset
xor edx, edx
mov r8d, Ordinal_1537
mov rcx, rbx
call sub.msvcrt.dll_memset
mov byte [0x14012784c], 1
jmp 0x14005c7d7
mov ecx, 2
call fcn.1400636d4
mov rcx, rax
lea rdx, str.WPPFMT_:_warning_:_enums_will_not_be_proccessed__failed_allocation_of_structures__n
call qword [sym.imp.msvcrt.dll_fprintf]
nop dword [rax + rax]
mov rcx, qword [0x140129988]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, qword [0x140129778]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov al, 1
jmp 0x14005c830
mov ecx, 2
call fcn.1400636d4
mov rcx, rax
lea rdx, str.WPPFMT_:_error_:_out_of_memory_from_splitpath_n
call qword [sym.imp.msvcrt.dll_fprintf]
nop dword [rax + rax]
jmp 0x14005c82e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 2
mov ebx, eax
call fcn.1400636d4
lea rdx, str.WPPFMT_:_error_:_0x_x_from_GetModuleFileNameW___n
mov r8d, ebx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fprintf]
nop dword [rax + rax]
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140062a30
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret