Function at 0x180027370
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
movaps xmmword [rsp + 0x2a0], xmm6
mov rax, qword [0x18007b130]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov ebx, dword [rbp + 0x228]
mov r15, rdx
mov r12, qword [rbp + 0x220]
mov r10, r9
mov qword [rsp + 0x50], r9
mov rdx, rcx
mov qword [rsp + 0x58], r8
lea r13d, [rbx - 5]
mov qword [rsp + 0x40], rcx
cmp ebx, r13d
jbe 0x1800279f2
mov edi, dword [rsp + 0x38]
xor r11d, r11d
mov r14d, dword [rsp + 0x40]
mov esi, dword [rsp + 0x40]
nop word [rax + rax]
mov eax, ebx
sub eax, 0x124
je 0x180027a21
sub eax, 1
je 0x180027594
sub eax, 1
je 0x1800274b1
sub eax, 5
je 0x18002742a
cmp eax, 5
jne 0x1800279e7
mov eax, dword [r15]
xchg dword [r12 + 0xc], eax
jmp 0x1800279e7
mov r9, rdx
lea rcx, [r15 + 4]
mov rdx, r10
lea rax, [r12 + 8]
sub rdx, r15
sub r9, r12
sub r8, r12
mov r10d, 0x200
cmp dword [rdx + rcx], 0xa
jne 0x180027474
movsd xmm0, qword [rax]
comisd xmm0, xmmword [r9 + rax]
jbe 0x180027474
mov qword [rbp - 0x78], rbx
movabs rbx, 0xc069000000000000
mov qword [r9 + rax], rbx
mov rbx, qword [rbp - 0x78]
mov dword [rdx + rcx], r11d
cmp dword [rcx], 0x14
jne 0x18002749e
movsd xmm0, qword [rax]
comisd xmm0, xmmword [r8 + rax]
jbe 0x18002749e
mov qword [rbp - 0x78], rdx
movabs rdx, 0xc069000000000000
mov qword [r8 + rax], rdx
mov rdx, qword [rbp - 0x78]
mov dword [rcx], r11d
add rax, 8
add rcx, 4
sub r10, 1
jne 0x180027448
jmp 0x1800279d8
mov rax, qword [r15]
xor r8d, r8d
xor ecx, ecx
mov qword [0x18007b7f8], rax
lea edx, [r8 + 0x1d]
call fcn.18001df90
lea rcx, str.ResetOnRead
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180027539
cmp byte [rax], 0
je 0x180027539
lea r9, [rsp + 0x48]
mov rdx, rax
lea r8, [rbp + 0x50]
mov ecx, 0x111
call fcn.180024bc0
movsxd r9, dword [r12]
mov r8d, 1
mov edx, dword [rsp + 0x48]
cmp r8, r9
jge 0x18002752a
nop dword [rax]
mov rax, qword [r15 + r8*8]
inc r8
movsxd rcx, edx
inc edx
mov qword [rbp + rcx*8 + 0x50], rax
cmp r8, r9
jl 0x180027510
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x60], edx
lea rcx, [rsp + 0x60]
lea rdx, [rbp + 0x50]
jmp 0x180027549
mov eax, dword [r12]
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x68], eax
mov rdx, r15
mov r8d, 0x104
call fcn.180011d20
cmp dword [0x18007b784], 0
mov eax, 1
mov edi, dword [0x18007d33c]
mov ecx, 0xeb1
cmovne eax, ecx
cmp edi, eax
jge 0x1800279d5
mov r8d, 0x59
lea rdx, str.Found_write_and_read_characteristics_on_remote_device.
lea rcx, [0x18004b9f0]
call fcn.180022ca0
jmp 0x1800279d5
mov ecx, dword [0x18007d34c]
test ecx, ecx
je 0x1800277b9
mov edx, dword [0x18007d340]
sub ecx, 1
je 0x1800276fb
sub ecx, 1
je 0x18002760f
cmp ecx, 1
je 0x1800275de
mov r8d, 0x59
lea rdx, str.IDS_STORE_BUTTON_PERMISSIONS
lea rcx, [0x18004b9f0]
call fcn.180022ca0
xor esi, esi
xor r14d, r14d
jmp 0x1800279ab
mov ecx, 0xc0
mov eax, ecx
sub eax, 0xbf
je 0x180027645
cmp eax, 1
jne 0x180027605
mov dword [0x18007b7ac], eax
mov eax, dword [0x18007d344]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], edx
dec ecx
cmp ecx, 0xbe
ja 0x1800275e3
mov ebx, 0x91
cmp ebx, 0x91
je 0x1800276df
cmp ebx, 0x2a7b
je 0x1800276cf
cmp ebx, 0x5465
je 0x180027671
cmp ebx, 0x7e4f
je 0x1800279ab
jmp 0x1800276e9
movsd xmm0, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
mov eax, dword [0x18007d33c]
mov ecx, 0x78
movsd qword [rbp - 0x70], xmm0
mov dword [rbp - 0x68], eax
call fcn.180019650
mov esi, eax
mov r14d, eax
jmp 0x1800279ab
cmp dword [0x18007b784], 0
mov edi, dword [0x18007d33c]
movsd xmm0, qword [rsp + 0x30]
je 0x1800276ac
xor edx, edx
movsd qword [rbp - 0x60], xmm0
mov r8d, 0xa2
mov dword [rbp - 0x58], edi
lea rcx, [rbp - 0x60]
call fcn.180035ac0
mov edx, dword [0x18007d340]
mov esi, eax
mov r14d, eax
jmp 0x1800276e9
lea rdx, [rbp - 0x50]
movsd qword [rbp - 0x50], xmm0
mov ecx, 0x78
mov dword [rbp - 0x48], edi
call fcn.180019650
mov edx, dword [0x18007d340]
mov esi, eax
mov r14d, eax
jmp 0x1800276e9
mov eax, dword [0x18007d344]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], edx
jmp 0x1800276e9
mov dword [0x18007b7ac], 1
add ebx, 0x29ea
cmp ebx, 0xa7a8
jbe 0x180027614
mov eax, 0x66
cmp eax, 0x66
je 0x18002779d
cmp eax, 0x45ba
jne 0x1800277a9
cmp dword [0x18007b784], 0
mov ebx, dword [0x18007d33c]
movsd xmm0, qword [rsp + 0x30]
je 0x180027827
xor edx, edx
movsd qword [rbp - 0x40], xmm0
mov r8d, 0xa2
mov dword [rbp - 0x38], ebx
lea rcx, [rbp - 0x40]
call fcn.180035ac0
mov r14d, eax
mov dword [rsp + 0x78], ebx
mov eax, dword [rsp + 0x30]
lea r8, [rsp + 0x78]
mov dword [rsp + 0x70], eax
mov r9d, 0x7f
lea rax, [rsp + 0x70]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.18001f380
mov dword [rsp + 0x34], eax
lea rcx, [rbp - 0x30]
movsd xmm0, qword [rsp + 0x30]
xor edx, edx
mov r8d, 0xa2
movsd qword [rbp - 0x30], xmm0
mov dword [rbp - 0x28], ebx
call fcn.180035ac0
mov esi, eax
jmp 0x1800279ab
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], edx
add eax, 0x4554
cmp eax, 0x8aa8
jbe 0x180027700
cmp dword [0x18007b784], 0
je 0x18002792c
mov ebx, 0x82
nop dword [rax + rax]
cmp ebx, 0x82
je 0x180027910
cmp ebx, 0x640a
je 0x1800278de
cmp ebx, 0xc792
je 0x1800278d7
cmp ebx, 0x12b1a
jne 0x180027918
movsd xmm0, qword [rsp + 0x30]
lea rcx, [rbp]
xor edx, edx
movsd qword [rbp], xmm0
mov r8d, 0xa2
mov dword [rbp + 8], edi
call fcn.180035ac0
lea esi, [rax - 1]
jmp 0x180027918
lea rdx, [rbp - 0x20]
movsd qword [rbp - 0x20], xmm0
mov ecx, 0x78
mov dword [rbp - 0x18], ebx
call fcn.180019650
mov r8d, dword [0x18007d33c]
mov r14d, eax
mov eax, r8d
and eax, 0x80000003
jge 0x180027858
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x18002789a
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul ecx, edx, 0x64
cmp r8d, ecx
jne 0x180027893
mov eax, 0x51eb851f
imul r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x190
cmp r8d, eax
jne 0x18002789a
mov ecx, 0xd
jmp 0x18002789c
xor ecx, ecx
movsxd rax, dword [0x18007d340]
lea rdx, [rbp - 0x10]
add rax, rcx
mov dword [rbp - 8], ebx
lea rcx, [0x180064e70]
mov eax, dword [rcx + rax*4]
mov ecx, 0x78
mov dword [rsp + 0x34], eax
movsd xmm0, qword [rsp + 0x30]
movsd qword [rbp - 0x10], xmm0
call fcn.180019650
mov esi, eax
jmp 0x1800279ab
dec r14d
inc edi
jmp 0x180027918
mov edi, dword [0x18007d33c]
lea rcx, [rbp + 0x10]
mov dword [rsp + 0x30], 7
xor edx, edx
movsd xmm0, qword [rsp + 0x30]
mov r8d, 0xa2
movsd qword [rbp + 0x10], xmm0
mov dword [rbp + 0x18], edi
call fcn.180035ac0
mov r14d, eax
jmp 0x180027918
mov dword [rsp + 0x34], 1
add ebx, 0x6388
cmp ebx, 0x18e20
jbe 0x1800277d0
jmp 0x1800279ab
mov ebx, 0x9b
cmp ebx, 0x9b
je 0x180027995
cmp ebx, 0x4506
je 0x180027985
cmp ebx, 0x8971
jne 0x18002799d
movsd xmm6, qword [rsp + 0x30]
lea rdx, [rbp + 0x20]
mov ecx, 0x78
movsd qword [rbp + 0x20], xmm6
mov dword [rbp + 0x28], edi
call fcn.180019650
inc edi
movsd qword [rbp + 0x30], xmm6
lea rdx, [rbp + 0x30]
mov dword [rbp + 0x38], edi
mov ecx, 0x78
mov r14d, eax
call fcn.180019650
lea esi, [rax - 1]
jmp 0x18002799d
mov edi, dword [0x18007d33c]
mov dword [rsp + 0x30], 1
jmp 0x18002799d
mov dword [rsp + 0x34], 1
add ebx, 0x446b
cmp ebx, 0xcd41
jbe 0x180027931
mov ebx, 0x125
mov dword [rbp - 0x80], r14d
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x40]
lea r9d, [rbx - 0x43]
call fcn.180019d50
movsd xmm0, qword [rax]
mov edi, dword [rax + 8]
movsd qword [rsp + 0x30], xmm0
xor r11d, r11d
mov r10, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
dec ebx
cmp ebx, r13d
ja 0x1800273f0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1800439f0
movaps xmm6, xmmword [rsp + 0x2a0]
add rsp, 0x2b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp dword [0x180064edc], 0
je 0x180027a5e
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov ecx, 0x5f
call fcn.1800172b0
lea r8, [rsp + 0x40]
mov dword [rsp + 0x50], esi
mov edx, 0x127
mov dword [rsp + 0x40], r14d
lea rcx, [rsp + 0x50]
call fcn.180029a80
xor eax, eax
jmp 0x1800279f6
mov eax, 1
jmp 0x1800279f6