Function at 0x140037d10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rcx, [0x14010c4c8]
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je case.0x140037d8c.6291467
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
sub eax, 0x600009
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x2f
ja case.0x140037d8c.6291467
movsxd rax, dword [rsp + 0x2c]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x38044]
mov eax, dword [rcx + rax*4 + 0x3801c]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
xor eax, eax
jmp 0x140038015
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
sub eax, 0x600007
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x3a
ja case.0x140037ddf.6291467
movsxd rax, dword [rsp + 0x30]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x380c0]
mov eax, dword [rcx + rax*4 + 0x38074]
add rax, rcx
jmp rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x12d8]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xab0]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xaa8]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xad0]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xad8]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xac4]
and eax, 0x40
test eax, eax
je 0x140037e83
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0xa98]
mov qword [rsp + 0x38], rax
jmp 0x140037e8c
mov qword [rsp + 0x38], 0xffffffffffffffff
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xac4]
and eax, 0x20
test eax, eax
je 0x140037ec3
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0xaa0]
mov qword [rsp + 0x40], rax
jmp 0x140037ecc
mov qword [rsp + 0x40], 0xffffffffffffffff
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xac8]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xae8]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xaf0]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xaf8]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xb00]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xb08]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xae0]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0xb10]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x1308]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov qword [rax], rcx
jmp 0x140038013
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x20], 0
je 0x140037fec
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x140037ffd
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0xc40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
jmp 0x140038013
mov eax, 0x30
jmp 0x140038015
xor eax, eax
add rsp, 0x50
pop rdi
ret