Function at 0x14004d110
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
push rbp
sub rsp, 0x20
mov r15, rcx
cmp dword [0x1400e4fb0], 0
mov r14d, dword [r15 + 0x1b0]
jne 0x14004d40f
lea rcx, str.FOR_FMT_TERMINATOR
call fcn.14003fb28
mov rbp, rax
xor ebx, ebx
xor r12d, r12d
test rbp, rbp
mov dword [0x1400e4fb8], ebx
mov dword [0x1400e4fb4], ebx
mov dword [0x1400e4fbc], ebx
mov dword [0x1400e4fb0], 1
je 0x14004d483
movsx eax, byte [rbp]
test eax, eax
je 0x14004d483
mov rdi, rbp
lea rsi, [0x1400b2a5c]
mov dl, byte [rdi]
cmp dl, byte [rsi]
jne 0x14004d1a6
test dl, dl
je 0x14004d1a2
mov dl, byte [rdi + 1]
cmp dl, byte [rsi + 1]
jne 0x14004d1a6
add rdi, 2
add rsi, 2
test dl, dl
jne 0x14004d184
xor eax, eax
jmp 0x14004d1ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x14004d474
mov rdi, rbp
lea rsi, [0x1400b2a58]
mov dl, byte [rdi]
cmp dl, byte [rsi]
jne 0x14004d1df
test dl, dl
je 0x14004d1db
mov dl, byte [rdi + 1]
cmp dl, byte [rsi + 1]
jne 0x14004d1df
add rdi, 2
add rsi, 2
test dl, dl
jne 0x14004d1bd
xor eax, eax
jmp 0x14004d1e4
sbb eax, eax
or eax, 1
test eax, eax
je 0x14004d463
mov rdi, rbp
lea rsi, str.CRLF
mov dl, byte [rdi]
cmp dl, byte [rsi]
jne 0x14004d218
test dl, dl
je 0x14004d214
mov dl, byte [rdi + 1]
cmp dl, byte [rsi + 1]
jne 0x14004d218
add rdi, 2
add rsi, 2
test dl, dl
jne 0x14004d1f6
xor eax, eax
jmp 0x14004d21d
sbb eax, eax
or eax, 1
test eax, eax
je 0x14004d452
mov rcx, rbp
mov edx, reloc.LMGR10.dll_Ordinal_59
call fcn.140040b00
mov rsi, rax
test rsi, rsi
je 0x14004d295
mov rcx, rbp
lea rdx, [0x1400b2a6c]
call fcn.1400a6948
cmp rbp, rax
je 0x14004d52f
mov rcx, rbp
lea rdx, [0x1400b2a68]
call fcn.1400a6948
cmp rbp, rax
je 0x14004d51b
mov rcx, rbp
lea rdx, str.CRLF_
call fcn.1400a6948
cmp rbp, rax
jne 0x14004d3ef
mov dword [0x1400e4fb8], 8
mov ebx, 8
lea rbp, [rsi + 1]
mov rcx, rbp
mov edx, Ordinal_61
call fcn.140040b00
mov rsi, rax
test rsi, rsi
je 0x14004d511
mov rcx, rbp
lea rdx, [0x1400b2a7c]
call fcn.1400a6948
cmp rbp, rax
je 0x14004d507
mov rcx, rbp
lea rdx, [0x1400b2a78]
call fcn.1400a6948
cmp rbp, rax
je 0x14004d4fd
mov rcx, rbp
lea rdx, str.CRLF:
call fcn.1400a6948
cmp rbp, rax
jne 0x14004d3ef
mov eax, 8
lea rbp, [rsi + 1]
xor edx, edx
cmp eax, ebx
mov ebx, 0
movsx ecx, byte [rbp]
cmovne ebx, eax
cmove eax, edx
test ecx, ecx
je 0x14004d3ef
xor esi, esi
lea rdi, [0x140000000]
movsx edx, byte [rbp]
test edx, edx
je 0x14004d3a2
test esi, esi
je 0x14004d386
cmp esi, 2
je 0x14004d386
cmp esi, 1
jne 0x14004d35b
cmp edx, 0x2c
je 0x14004d543
cmp edx, 0x2d
jne 0x14004d36d
mov dword [rdi + r12*4 + 0xe4da0], ecx
je 0x14004d4a7
jmp 0x14004d364
cmp esi, 3
jne 0x14004d3ef
cmp edx, 0x2c
je 0x14004d4dd
cmp edx, 0x30
jl 0x14004d3ef
cmp edx, 0x39
jg 0x14004d3ef
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
add ecx, 0xffffffd0
jmp 0x14004d395
cmp edx, 0x30
jl 0x14004d3ef
cmp edx, 0x39
jg 0x14004d3ef
inc esi
lea ecx, [rdx - 0x30]
inc rbp
cmp r12, 0x40
jl 0x14004d323
movsx edx, byte [rbp]
test edx, edx
jne 0x14004d3ef
movsx edx, byte [rbp - 1]
cmp edx, 0x2c
je 0x14004d3ef
cmp edx, 0x2d
je 0x14004d3ef
cmp esi, 1
je 0x14004d4b1
lea rdx, [0x140000000]
cmp ecx, dword [rdx + r12*4 + 0xe4da0]
jl 0x14004d3ef
mov dword [0x1400e4fb4], eax
lea rax, [0x140000000]
mov dword [rax + r12*4 + 0xe4ea0], ecx
inc r12d
mov dword [0x1400e4fbc], r12d
jmp 0x14004d415
xor eax, eax
mov ecx, 0x60
xor edx, edx
mov dword [0x1400e4fb8], eax
mov dword [0x1400e4fb4], eax
mov dword [0x1400e4fbc], eax
call fcn.14006765c
mov ebx, dword [0x1400e4fb4]
test ebx, ebx
je 0x14004d44a
movsxd rax, dword [0x1400e4fbc]
xor edx, edx
test rax, rax
jle 0x14004d44a
lea rcx, [0x140000000]
cmp r14d, dword [rcx + rdx*4 + 0xe4da0]
jl 0x14004d442
cmp r14d, dword [rcx + rdx*4 + 0xe4ea0]
jle 0x14004d483
inc rdx
cmp rdx, rax
jl 0x14004d42e
mov ebx, dword [0x1400e4fb8]
jmp 0x14004d483
mov dword [0x1400e4fb8], 8
mov ebx, 8
jmp 0x14004d483
mov dword [0x1400e4fb8], 6
mov ebx, 6
jmp 0x14004d483
mov dword [0x1400e4fb8], 7
mov ebx, 7
test ebx, ebx
je 0x14004d496
mov byte [r15 + 0x230], bl
mov byte [r15 + 0x232], 3
xor eax, eax
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov esi, 2
jmp 0x14004d395
mov dword [0x1400e4fb4], eax
lea rax, [0x140000000]
mov dword [rax + r12*4 + 0xe4da0], ecx
mov dword [rax + r12*4 + 0xe4ea0], ecx
inc r12d
mov dword [0x1400e4fbc], r12d
jmp 0x14004d415
cmp ecx, dword [rdi + r12*4 + 0xe4da0]
jl 0x14004d3ef
mov dword [rdi + r12*4 + 0xe4ea0], ecx
inc r12
xor esi, esi
jmp 0x14004d395
mov eax, 6
jmp 0x14004d2fb
mov eax, 7
jmp 0x14004d2fb
mov eax, 7
jmp 0x14004d2ff
mov dword [0x1400e4fb8], 6
mov ebx, 6
jmp 0x14004d291
mov dword [0x1400e4fb8], 7
mov ebx, 7
jmp 0x14004d291
cmp edx, 0x2d
jmp 0x14004d34b