Function at 0x140089a80
Capabilities:
Get hostname
Get session user name
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140391620]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r12, rcx
movzx eax, byte [rcx + 0x60]
test al, al
jne 0x14008a0de
mov dword [rsp + 0x40], 0x10
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor r13d, r13d
mov qword [rbp], r13
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], 7
mov word [rbp], r13w
lea rax, [rbp + 0x80]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x140089b10
movabs rsi, 0x7ffffffffffffffe
mov eax, 0xa
cmp rbx, 7
ja 0x140089b55
mov qword [rbp + 0x10], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x80]
lea rcx, [rbp]
call fcn.140257930
mov word [rbp + rbx], r13w
mov r15, qword [rbp]
jmp 0x140089bac
cmp rbx, rsi
ja 0x14008a114
mov r14, rbx
or r14, 7
cmp r14, rsi
jbe 0x140089b6f
mov r14, rsi
jmp 0x140089b76
cmp r14, rax
cmovb r14, rax
lea rdx, [r14 + 1]
lea rcx, [rbp]
call fcn.14004e7e0
mov r15, rax
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], r14
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x80]
mov rcx, rax
call fcn.140257930
mov word [rbx + r15], r13w
mov qword [rbp], r15
lea r8, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r8, r15
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, dword [rbp + 0x10]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], 0xf
mov rdx, rbx
xor r8d, r8d
lea rcx, [rbp + 0x40]
call fcn.14004c840
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rcx, qword [rbp + 0x40]
lea r8, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r8, qword [rbp]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp + 0x10]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, str.
call sym.ethminer.exe_public:_void___cdecl_Json::PathArgument::destructor_void____ptr64
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [str.], xmm0
movups xmm1, xmmword [rbp + 0x50]
movups xmmword [0x1403923a0], xmm1
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], 0xf
mov byte [rbp + 0x40], 0
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140089cb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089cad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a11a
call fcn.1402550ac
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], 7
mov word [rbp], r13w
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r13w
lea rax, [rbp + 0x80]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140089cf1
cmp rdi, 7
ja 0x140089d28
mov qword [rbp + 0x30], rdi
lea rbx, [rdi + rdi]
mov r8, rbx
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x20]
call fcn.140257930
mov word [rbp + rbx + 0x20], r13w
mov r14, qword [rbp + 0x20]
jmp 0x140089d84
cmp rdi, rsi
ja 0x14008a120
mov rax, rdi
or rax, 7
cmp rax, rsi
ja 0x140089d4d
mov rsi, rax
cmp rax, 0xa
mov eax, 0xa
cmovb rsi, rax
lea rdx, [rsi + 1]
lea rcx, [rbp + 0x20]
call fcn.14004e7e0
mov r14, rax
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], rsi
lea rbx, [rdi + rdi]
mov r8, rbx
lea rdx, [rbp + 0x80]
mov rcx, rax
call fcn.140257930
mov word [rbx + r14], r13w
mov qword [rbp + 0x20], r14
lea r8, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae r8, r14
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, dword [rbp + 0x30]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov qword [rbp + 0x60], r13
mov qword [rbp + 0x70], r13
mov qword [rbp + 0x78], 0xf
mov rdx, rbx
xor r8d, r8d
lea rcx, [rbp + 0x60]
call fcn.14004c840
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae r8, qword [rbp + 0x20]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r9d, dword [rbp + 0x30]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, str.SYSTEM
call sym.ethminer.exe_public:_void___cdecl_Json::PathArgument::destructor_void____ptr64
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [str.SYSTEM], xmm0
movups xmm1, xmmword [rbp + 0x70]
movups xmmword [0x140392380], xmm1
mov qword [rbp + 0x70], r13
mov qword [rbp + 0x78], 0xf
mov byte [rbp + 0x60], 0
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140089e8a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089e85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a126
call fcn.1402550ac
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r13w
lea rcx, [rsp + 0x48]
call fcn.14007c000
nop
lea rcx, [0x140392350]
mov rbx, qword [rsp + 0x48]
cmp rcx, rbx
je 0x140089ecd
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140089ec4
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
call fcn.140012e90
lea r8, [rbx + 0x20]
lea rcx, [0x1403923b0]
cmp rcx, r8
je 0x140089ef3
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140089eea
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.140012e90
mov dword [0x1403922d0], 6
lea rdx, [0x140392450]
lea rcx, [rbp - 0x80]
call fcn.140012d30
lea rdx, [0x1403a2348]
mov rcx, rax
call fcn.14007bdb0
lea rdx, [0x140392470]
lea rcx, [rbp - 0x60]
call fcn.140012d30
lea rdx, [0x1403a2018]
mov rcx, rax
call fcn.14007bdb0
xor ecx, ecx
call fcn.140266cb4
mov rcx, rax
call fcn.1402613f0
call fcn.1402613c4
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub r8d, ecx
sub r8d, 5
mov dword [0x1403a1c60], r8d
mov rdx, qword [r12]
lea rcx, [0x1403a24b8]
call fcn.14008ba00
lea rdx, [0x140392410]
lea rcx, [rbp - 0x40]
call fcn.140012d30
lea rdx, [0x1403a22f0]
mov rcx, rax
call fcn.14007bdb0
mov rcx, r12
call fcn.14007fbe0
lea rdx, [0x140392430]
lea rcx, [rbp - 0x20]
call fcn.140012d30
lea rdx, [0x1403a22d0]
mov rcx, rax
call fcn.14007bdb0
mov rcx, r12
call fcn.14007e8c0
mov dword [r12 + 0x8c], r13d
mov byte [r12 + 0x60], 1
mov byte [r12 + 0x62], 1
mov eax, 1
lock xadd dword [r12 + 0x88], eax
lea rcx, [0x14008a130]
mov qword [rbp], rcx
mov qword [rbp + 8], r12
movups xmm0, xmmword [r12 + 0x160]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rbp]
movups xmmword [rsp + 0x70], xmm1
mov ecx, dword [0x1403a2748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rsp + 0x70]
mov ecx, 0x60
call fcn.140035580
mov qword [rax + 0x20], r13
lea rcx, [0x140094120]
mov qword [rax + 0x28], rcx
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov dword [rax + 0x30], r13d
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rax + 0x48], xmm1
mov rcx, qword [0x1403a1d28]
lock inc dword [rcx + 0x30]
mov rdx, rax
call fcn.140036580
nop
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14008a0de
mov rbx, rdi
mov rsi, qword [rsp + 0x50]
cmp rdi, rsi
je 0x14008a0a9
mov rcx, rbx
call sym.ethminer.exe_public:_void___cdecl_Json::PathArgument::destructor_void____ptr64
add rbx, 0x20
cmp rbx, rsi
jne 0x14008a098
mov rdx, qword [rsp + 0x58]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x14008a0d6
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008a10e
mov rcx, rdi
call fcn.1402550ac
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140255050
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140260990
int3
call fcn.140012ae0
int3
call fcn.140260990
int3
call fcn.140012ae0
int3
call fcn.140260990
int3