Function at 0x1800fb370
Capabilities:
Get system information on windows
Get thread local storage value
Query environment variable
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x710
mov rax, qword [0x18025e100]
xor rax, rsp
mov qword [rsp + 0x700], rax
mov rax, qword [rsp + 0x770]
mov rbx, qword [rsp + 0x778]
mov rbp, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x780]
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x7a0]
xor r14d, r14d
mov qword [rsp + 0xd8], r9
mov qword [rsp + 0x68], r8
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0xa8], r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0xb4], r14d
lea edx, [rax - 1]
add eax, 0xffff
mov dword [rsp + 0xb8], r14d
not edx
mov dword [rsp + 0xbc], r14d
mov r15d, 8
and edx, eax
mov dword [rsp + 0xb0], edx
lea eax, [rdx + 0xfffff]
lea ecx, [rdx - 1]
not ecx
and ecx, eax
lea rax, [rsp + 0x610]
mov dword [rsp + 0xc0], ecx
mov ecx, 7
mov dword [rsp + 0x40], ecx
mov qword [rax - 0x10], r14
mov qword [rax - 8], r14
mov qword [rax], r15
mov qword [rax + 8], 0x32
add rax, 0x20
sub ecx, 1
jns 0x1800fb464
mov rax, r14
mov rcx, rbx
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x78], rax
call fcn.18010f0c0
mov rdi, rax
movzx eax, byte [0x18026504d]
mov edx, 1
mov ecx, eax
test al, al
mov qword [rsp + 0x88], r14
cmove ecx, edx
mov qword [rsp + 0x90], r14
mov byte [0x18026504d], cl
lea rcx, [0x18003fb88]
call sub.msvcrt.dll_getenv
mov r13, qword [rsp + 0x790]
lea rbx, [0x1800014b0]
test rax, rax
je 0x1800fb537
test r13, r13
je 0x1800fb537
mov r10d, r14d
mov r9, rbx
test byte [r9 + 0x10], 1
je 0x1800fb52a
mov r8, qword [r9]
mov rax, r13
sub r8, r13
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800fb526
inc rax
test ecx, ecx
jne 0x1800fb513
test edx, edx
je 0x1800fb562
inc r10d
add r9, 0x18
cmp r10d, 0x46
jb 0x1800fb503
mov r12d, dword [rsp + 0x798]
lea rcx, [rsp + 0x58]
call fcn.18006bc90
mov esi, eax
test eax, eax
js 0x1800fb5ee
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800fb5b1
mov rsi, r14
jmp 0x1800fb5ba
mov rax, qword [r9]
lea rcx, [rsp + 0xe0]
mov qword [rcx], rax
mov rax, qword [r9 + 8]
mov qword [rcx + 8], rax
mov rax, qword [r9 + 0x10]
mov qword [rcx + 0x10], rax
mov eax, dword [rsp + 0xe8]
and eax, 0xff00
cmp eax, 0x400
jae 0x1800fb59d
test byte [rsp + 0xf0], 0x20
je 0x1800fb537
mov r12d, dword [rsp + 0x798]
btr r12d, 9
bts r12d, 0xa
jmp 0x1800fb53f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rax, qword [rsi]
xor r8d, r8d
mov edx, 0x10000
lea ecx, [r8 + 1]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x1800fb64c
mov esi, 0x8007000e
mov r14d, dword [rsp + 0x40]
call sub.msvcrt.dll__clearfp
mov edx, 0xb001f
mov ecx, r14d
call sub.msvcrt.dll__controlfp
xor r12d, r12d
mov rcx, rbp
mov qword [rbp + 8], r12
call fcn.1800fa970
lea rdi, [rsp + 0x600]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x1800fbe79
nop dword [rax]
mov ecx, dword [0x18025e63c]
mov rax, qword [rbx]
mov qword [rdi], rax
test ecx, ecx
jns 0x1800fbe59
mov rax, r12
jmp 0x1800fbe5f
xor edx, edx
xor ecx, ecx
mov qword [rsi], rax
call sub.msvcrt.dll__controlfp
mov edx, 0x8001f
or ecx, 0xffffffff
mov r14d, eax
call sub.msvcrt.dll__controlfp
mov edx, 0x30000
xor ecx, ecx
call sub.msvcrt.dll__controlfp
mov rax, qword [rsp + 0xa0]
mov qword [rbp], rax
test r12d, 0xcffb0000
je 0x1800fb6b6
lea rax, [0x18003fba8]
mov qword [rsp + 0x20], rax
lea r9, [0x1800344c4]
mov r8d, 0xc2c
mov rcx, rbp
xor edx, edx
call fcn.180109730
mov esi, 0x8876086c
jmp 0x1800fb5f3
bt r12d, 0xc
jae 0x1800fb6cd
bt r12d, 0xb
jae 0x1800fb6cd
lea rax, [0x18003fbd0]
jmp 0x1800fb690
cmp qword [rsp + 0x68], 0
je 0x1800fb6e4
test r12b, 0x18
je 0x1800fb6e4
lea rax, [0x18003fc30]
jmp 0x1800fb690
cmp qword [rsp + 0xd0], 0
mov rcx, rbp
jne 0x1800fb71c
lea rax, [0x18003fc78]
lea r9, [0x1800344c4]
mov r8d, 0xc2c
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.180109730
mov esi, 0x8876086c
jmp 0x1800fb5f3
mov qword [rsp + 0x28], rax
mov r9, r13
mov r8d, r12d
xor edx, edx
mov byte [rsp + 0x20], 0
call fcn.1800fa9f0
mov esi, eax
test eax, eax
js 0x1800fb5f3
xor r13d, r13d
cmp qword [rsp + 0x70], r13
je 0x1800fb7db
mov r10, qword [rbp + 0x18]
test r10, r10
je 0x1800fb794
xor r9d, r9d
test byte [rbx + 0x10], 0x10
je 0x1800fb787
mov r8, qword [rbx]
mov rax, r10
sub r8, r10
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800fb783
inc rax
test ecx, ecx
jne 0x1800fb770
test edx, edx
je 0x1800fb7a7
inc r9d
add rbx, 0x18
cmp r9d, 0x46
jb 0x1800fb757
or dword [rbp + 0x24], 0x100
mov dword [rbp + 0x20], 0x46580200
jmp 0x1800fbaf5
mov rax, qword [rbx]
lea rcx, [rsp + 0xe0]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 0x10]
or dword [rbp + 0x24], 0x100
mov qword [rcx + 0x10], rax
mov eax, dword [rsp + 0xe8]
mov dword [rbp + 0x20], eax
jmp 0x1800fbaf5
test r12b, 0xc0
je 0x1800fb8a4
mov r11, qword [rbp + 0x18]
xor r10d, r10d
mov r9, rbx
nop
test byte [r9 + 0x10], 1
je 0x1800fb817
mov r8, qword [r9]
mov rax, r11
sub r8, r11
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800fb813
inc rax
test ecx, ecx
jne 0x1800fb800
test edx, edx
je 0x1800fb83b
inc r10d
add r9, 0x18
cmp r10d, 0x46
jb 0x1800fb7f0
mov qword [rsp + 0x20], r11
lea r9, [0x18003fc98]
mov r8d, 0xdb2
jmp 0x1800fb6a2
mov rax, qword [r9]
lea rcx, [rsp + 0xe0]
mov qword [rcx], rax
mov rax, qword [r9 + 8]
mov qword [rcx + 8], rax
mov rax, qword [r9 + 0x10]
mov qword [rcx + 0x10], rax
mov ecx, dword [rsp + 0xe8]
mov eax, ecx
and eax, 0xffff0000
cmp eax, 0xfffe0000
je 0x1800fb8fb
cmp eax, 0xffff0000
jne 0x1800fb8a4
test r12b, r12b
jns 0x1800fb8a4
or r12d, 5
lea rax, [0x18003fcd0]
lea rdx, [0x18003fcd8]
and ecx, 0xff00
cmp ecx, 0x300
cmovae rax, rdx
mov qword [rbp + 0x18], rax
mov r10, qword [rbp + 0x18]
xor r9d, r9d
nop dword [rax + rax]
test byte [rbx + 0x10], 1
je 0x1800fb8d7
mov r8, qword [rbx]
mov rax, r10
sub r8, r10
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800fb8d3
inc rax
test ecx, ecx
jne 0x1800fb8c0
test edx, edx
je 0x1800fb91e
inc r9d
add rbx, 0x18
cmp r9d, 0x46
jb 0x1800fb8b0
mov qword [rsp + 0x20], r10
lea r9, [0x18003fc98]
mov r8d, 0xdb2
jmp 0x1800fb6a2
test r12b, 0x40
je 0x1800fb8a4
or r12d, 5
lea rax, [0x18003fcc0]
lea rdx, [0x18003fcc8]
and ecx, 0xff00
jmp 0x1800fb896
mov rax, qword [rbx]
lea rcx, [rsp + 0xe0]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 0x10]
mov dword [rbp + 0x24], r12d
mov qword [rcx + 0x10], rax
mov eax, dword [rsp + 0xe8]
mov dword [rbp + 0x20], eax
cmp eax, 0xfffe0100
jne 0x1800fb958
mov dword [rbp + 0x20], 0xfffe0101
cmp dword [rbp + 0x20], 0xffff0100
jne 0x1800fb968
mov dword [rbp + 0x20], 0xffff0101
mov ecx, dword [rbp + 0x20]
mov eax, ecx
and eax, 0xff00
cmp eax, 0x400
jne 0x1800fb9a1
bt r12d, 0x1d
jae 0x1800fb9c9
lea r9, [0x18003fce0]
xor edx, edx
mov r8d, 0xdb2
mov rcx, rbp
call fcn.180109730
mov esi, 0x8876086c
jmp 0x1800fb5f3
bt r12d, 0x1c
jae 0x1800fb9c9
lea r9, [0x18003fd20]
xor edx, edx
mov r8d, 0xdb1
mov rcx, rbp
call fcn.180109730
mov esi, 0x8876086c
jmp 0x1800fb5f3
cmp ecx, 0xfffe0301
ja 0x1800fba06
je 0x1800fbaa0
cmp ecx, 0x54580100
je 0x1800fbaa0
cmp ecx, 0xfffe0102
je 0x1800fbaa0
cmp ecx, 0xfffe0201
je 0x1800fbaa0
cmp ecx, 0xfffe0203
jmp 0x1800fba98
cmp ecx, 0xffff0205
ja 0x1800fba92
cmp ecx, 0xffff0204
jae 0x1800fbaa0
cmp ecx, 0xffff0101
jb 0x1800fba9a
cmp ecx, 0xffff0104
jbe 0x1800fba36
cmp ecx, 0xffff0201
jmp 0x1800fba98
bt r12d, 0xc
mov rdx, rdi
mov rcx, rbp
jae 0x1800fba5e
lea r9, [0x18003fd50]
mov r8d, 0xde9
call fcn.180109760
mov dword [rbp + 0x20], 0xffff0200
jmp 0x1800fbaaa
lea r9, [0x18003fd80]
mov r8d, 0xdd3
call fcn.180109730
lea r9, [0x18003fde0]
mov r8d, 0xdd3
mov rdx, rdi
mov rcx, rbp
call fcn.180109730
mov esi, 0x80004001
jmp 0x1800fb5f3
cmp ecx, 0xffff0301
je 0x1800fbaa0
cmp byte [rbp + 0x21], 4
jb 0x1800fbaaa
mov eax, r12d
bts eax, 8
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x20]
cmp eax, 0xfffe0301
ja 0x1800fbad3
je 0x1800fbacb
cmp eax, 0xfffe0102
je 0x1800fbacb
cmp eax, 0xfffe0201
je 0x1800fbacb
cmp eax, 0xfffe0203
jne 0x1800fbaf5
mov r13d, 0xfffe0400
jmp 0x1800fbaf5
cmp eax, 0xffff0201
je 0x1800fbaef
cmp eax, 0xffff0203
jbe 0x1800fbaf5
cmp eax, 0xffff0205
jbe 0x1800fbaef
cmp eax, 0xffff0301
jne 0x1800fbaf5
mov r13d, 0xffff0400
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x20]
lea r9, [rbp + 0x10]
xor r8d, r8d
call fcn.1800a13c0
mov esi, eax
test eax, eax
js 0x1800fb5f3
mov rbx, qword [rsp + 0x68]
test rbx, rbx
jne 0x1800fbc33
bt dword [rbp + 0x24], 0x12
jae 0x1800fbb2e
mov rax, qword [rbp]
mov byte [rax + 0x18], 1
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp]
xor ecx, ecx
lea rax, [rsp + 0x180]
mov qword [rsp + 0x170], rcx
mov byte [rsp + 0x178], cl
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x540]
mov qword [rsp + 0x530], rcx
mov qword [rsp + 0x520], rax
mov byte [rsp + 0x538], cl
mov qword [rsp + 0x1e8], rcx
lea rax, [rsp + 0x110]
mov byte [rsp + 0x5bc], cl
mov byte [rsp + 0x5be], cl
mov dword [rsp + 0x1f0], ecx
mov qword [rsp + 0x1f8], rcx
mov qword [rsp + 0x200], rcx
mov dword [rsp + 0x5e4], ecx
mov dword [rsp + 0x5e8], ecx
mov dword [rsp + 0x5ec], ecx
mov qword [rsp + 0x518], rcx
lea r9, [rsp + 0xa8]
lea rcx, [rsp + 0x150]
bts r8d, 0x1f
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x168], 4
mov byte [rsp + 0x179], 1
mov qword [rsp + 0x528], 4
mov byte [rsp + 0x539], 1
call fcn.18010a3d0
lea rcx, [rsp + 0x150]
mov esi, eax
call fcn.18010a330
test esi, esi
js 0x1800fb5f3
lea rbx, [rsp + 0x110]
mov qword [rsp + 0x68], rbx
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800fbc44
xor esi, esi
mov rax, rsi
jmp 0x1800fbc4c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
lea rcx, [rsp + 0xa8]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800fbc6f
mov rax, rsi
jmp 0x1800fbc75
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [rsp + 0x60]
lea rcx, [rsp + 0xa8]
mov edx, r15d
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], rsi
lea rax, [rsp + 0x600]
mov dword [r9 + 0x250], r15d
mov ecx, esi
mov qword [r9 + 0x248], rax
lea r8, [rsp + 0x610]
mov eax, edx
inc ecx
add r8, 0x20
mov qword [r8 - 0x20], rax
add edx, r15d
cmp ecx, dword [r9 + 0x250]
jb 0x1800fbcb1
mov r9, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xd8]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
mov rdx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1800fab90
mov rbx, qword [rsp + 0x98]
mov esi, eax
test eax, eax
js 0x1800fbe1b
test r13d, r13d
je 0x1800fbe02
mov rdx, qword [rsp + 0xa0]
mov r9, qword [rsp + 0x790]
mov r8d, r12d
mov qword [rsp + 0x28], rdx
xor edx, edx
mov rcx, rbp
mov byte [rsp + 0x20], 0
call fcn.1800fa9f0
mov esi, eax
test eax, eax
js 0x1800fbe1b
mov edx, dword [rbp + 0x24]
lea r9, [rbp + 0x10]
xor r8d, r8d
mov ecx, r13d
mov dword [rbp + 0x20], r13d
call fcn.1800a13c0
mov esi, eax
test eax, eax
js 0x1800fbe1b
mov r9, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0x68]
lea rax, [rsp + 0x48]
mov rcx, rbp
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.1800fab90
mov rdi, qword [rsp + 0x48]
mov esi, eax
test eax, eax
js 0x1800fbe20
lea r9, [rsp + 0x78]
mov r8, rdi
mov rdx, rbx
mov rcx, rbp
call fcn.1800faee0
mov esi, eax
test eax, eax
js 0x1800fbdfb
test rbx, rbx
je 0x1800fbde4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rax, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x78]
xor r12d, r12d
mov qword [rax], rbx
xor esi, esi
jmp 0x1800fbe33
mov r12, qword [rsp + 0x78]
jmp 0x1800fbe25
mov rax, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov qword [rax], rbx
xor esi, esi
jmp 0x1800fbe33
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
test rbx, rbx
je 0x1800fbe33
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
test rdi, rdi
je 0x1800fbe41
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test r12, r12
je 0x1800fb5f3
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x10]
jmp 0x1800fb5f3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rdi]
test rbx, rbx
jne 0x1800fb630
mov qword [rdi + 8], r12
add rdi, 0x20
sub r15, 1
jne 0x1800fb620
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1800fbeae
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x248], r12
mov dword [rax + 0x250], r12d
mov qword [rax], rcx
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800fbebd
mov rax, r12
jmp 0x1800fbec3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r12
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800fbede
mov rax, r12
jmp 0x1800fbee4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rax + 0x28], r12
mov qword [rax + 0x30], r12
mov qword [rax + 0x38], r12
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x1800fbf06
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
cmp dword [rsp + 0x58], r12d
je 0x1800fbf58
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800fbf1c
mov rbx, r12
jmp 0x1800fbf25
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
dec dword [rbx + 0x254]
cmp dword [rbx + 0x254], r12d
jg 0x1800fbf58
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800fbf42
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, dword [0x18025e63c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdi, [rsp + 0x700]
mov eax, 7
nop word [rax + rax]
mov rbx, qword [rdi - 0x20]
sub rdi, 0x20
test rbx, rbx
je 0x1800fbfb5
nop dword [rax]
mov rax, qword [rbx]
mov qword [rdi], rax
mov ecx, dword [0x18025e63c]
test ecx, ecx
jns 0x1800fbf95
mov rax, r12
jmp 0x1800fbf9b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rdi]
test rbx, rbx
jne 0x1800fbf80
mov eax, dword [rsp + 0x40]
sub eax, 1
mov qword [rdi + 8], r12
mov dword [rsp + 0x40], eax
jns 0x1800fbf70
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1800fbff6
nop
mov rax, qword [rcx]
xor edx, edx
mov r8d, 0x8000
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
jne 0x1800fbfd0
mov eax, esi
mov rcx, qword [rsp + 0x700]
xor rcx, rsp
call fcn.18024a670
mov rbx, qword [rsp + 0x758]
add rsp, 0x710
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret