Function at 0x140144870
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x358
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rcx, qword [rsp + 0x360]
call fcn.14000e7d0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
call fcn.14002b6b0
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x368]
call fcn.140035cf0
jmp 0x1401448de
lea rcx, [rsp + 0x40]
call fcn.14002d290
lea rdx, [rsp + 0x278]
mov rcx, qword [rsp + 0x368]
call fcn.140020530
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001e940
movzx eax, al
test eax, eax
je 0x140144928
lea rcx, [rsp + 0x40]
call fcn.14001e9f0
mov r8, rax
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x60]
call fcn.140148de0
jmp 0x1401448d4
call fcn.140109e40
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140144af2
lea rdx, str.PSLOGID
lea rcx, [rsp + 0x320]
call fcn.1400179b0
nop
lea r8, [rsp + 0x320]
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x60]
call fcn.140148d70
nop
lea rcx, [rsp + 0x320]
call fcn.14000a800
lea rcx, [rsp + 0x2c0]
call fcn.14000a280
nop
mov rcx, qword [rsp + 0x48]
call fcn.140229d80
xor r9d, r9d
lea r8, [rsp + 0x2c0]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.1400e6c30
mov rdx, qword [rsp + 0x360]
lea rcx, [rsp + 0x1b0]
call fcn.140148a90
mov rax, qword [rax]
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x70], rax
mov rax, qword [str._bW1_]
add rax, 0x10
mov qword [rsp + 0x78], rax
mov rax, qword [str._bW1_]
mov qword [rsp + 0x80], rax
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x1b8]
call fcn.140148ac0
mov rdx, qword [rsp + 0x360]
lea rcx, [rsp + 0x1c0]
call fcn.140148a90
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x2c0]
call fcn.140020570
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x2c0]
call fcn.140020230
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xb0], rax
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x1d8]
call fcn.140148b70
xor eax, eax
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x360]
call fcn.140149a70
nop
lea rcx, [rsp + 0x2c0]
call fcn.14000a800
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
test eax, eax
je 0x140144dc5
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x2a0]
call fcn.1400179b0
nop
xor r8d, r8d
mov dx, reloc.ODBC32.dll_SQLMoreResults
lea rcx, [rsp + 0x2a0]
call fcn.1400786e0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140144d97
mov r9, qword [rsp + 0x50]
xor r8d, r8d
lea rdx, [rsp + 0x2e0]
lea rcx, [rsp + 0x2a0]
call fcn.1400375d0
nop
mov rax, qword [rsp + 0x50]
inc rax
mov r9, 0xffffffffffffffff
mov r8, rax
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x2a0]
call fcn.1400375d0
nop
lea r8, [rsp + 0x2e0]
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x60]
call fcn.1401499f0
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x60]
call fcn.140020530
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xc0]
call fcn.14001e8c0
movzx eax, al
test eax, eax
je 0x140144d7c
mov rdx, qword [rsp + 0x360]
lea rcx, [rsp + 0x1f0]
call fcn.140148a90
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x1f8]
lea rcx, [rsp + 0x2e0]
call fcn.140020570
mov rax, qword [rax]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xe8], rax
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x2e0]
call fcn.140020230
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xf0], rax
mov r9, qword [rsp + 0xe0]
mov r8, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x208]
call fcn.140148b70
mov eax, reloc.ODBC32.dll_SQLMoreResults
mov word [rsp + 0x22], ax
lea rdx, [rsp + 0x22]
mov rcx, qword [rsp + 0x360]
call fcn.140149a70
mov rdx, qword [rsp + 0x360]
lea rcx, [rsp + 0x210]
call fcn.140148a90
mov rax, qword [rax]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x110], rax
lea rdx, [rsp + 0x218]
lea rcx, [rsp + 0x300]
call fcn.140020570
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x118], rax
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x300]
call fcn.140020230
mov rax, qword [rax]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x120], rax
mov r9, qword [rsp + 0x110]
mov r8, qword [rsp + 0x118]
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x228]
call fcn.140148b70
xor eax, eax
mov word [rsp + 0x24], ax
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x360]
call fcn.140149a70
nop
lea rcx, [rsp + 0x300]
call fcn.14000a800
nop
lea rcx, [rsp + 0x2e0]
call fcn.14000a800
lea rcx, [rsp + 0x2a0]
call fcn.140016630
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x2a0]
call fcn.14000a800
jmp 0x140144af2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x368]
call fcn.140035cf0
jmp 0x140144dee
lea rcx, [rsp + 0x30]
call fcn.14002d290
lea rdx, [rsp + 0x230]
mov rcx, qword [rsp + 0x368]
call fcn.140020530
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14001e940
movzx eax, al
test eax, eax
je 0x14014500f
mov rdx, qword [rsp + 0x360]
lea rcx, [rsp + 0x238]
call fcn.140148a90
mov rax, qword [rax]
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x30]
call fcn.14001e9f0
mov qword [rsp + 0x130], rax
lea rdx, [rsp + 0x240]
mov rcx, qword [rsp + 0x130]
call fcn.1400205e0
mov rax, qword [rax]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x158], rax
lea rcx, [rsp + 0x30]
call fcn.14001e9f0
mov qword [rsp + 0x140], rax
lea rdx, [rsp + 0x248]
mov rcx, qword [rsp + 0x140]
call fcn.140020290
mov rax, qword [rax]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x160], rax
mov r9, qword [rsp + 0x150]
mov r8, qword [rsp + 0x158]
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x250]
call fcn.140148b70
mov eax, reloc.ODBC32.dll_SQLMoreResults
mov word [rsp + 0x26], ax
lea rdx, [rsp + 0x26]
mov rcx, qword [rsp + 0x360]
call fcn.140149a70
mov rdx, qword [rsp + 0x360]
lea rcx, [rsp + 0x258]
call fcn.140148a90
mov rax, qword [rax]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x190], rax
lea rcx, [rsp + 0x30]
call fcn.14001e9f0
add rax, 0x20
mov qword [rsp + 0x170], rax
lea rdx, [rsp + 0x260]
mov rcx, qword [rsp + 0x170]
call fcn.1400205e0
mov rax, qword [rax]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x198], rax
lea rcx, [rsp + 0x30]
call fcn.14001e9f0
add rax, 0x20
mov qword [rsp + 0x180], rax
lea rdx, [rsp + 0x268]
mov rcx, qword [rsp + 0x180]
call fcn.140020290
mov rax, qword [rax]
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x1a0], rax
mov r9, qword [rsp + 0x190]
mov r8, qword [rsp + 0x198]
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x270]
call fcn.140148b70
xor eax, eax
mov word [rsp + 0x28], ax
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x360]
call fcn.140149a70
jmp 0x140144de4
xor eax, eax
mov word [rsp + 0x2a], ax
lea rdx, [rsp + 0x2a]
mov rcx, qword [rsp + 0x360]
call fcn.140149a70
nop
lea rcx, [rsp + 0x60]
call fcn.14002c750
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x358
ret