Function at 0x40100b
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
lea rax, str.USERNAME
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
jne 0x401168
call sub.msvcrt.dll___iob_func
add rax, 0x60
lea rcx, [0x004032b2]
mov r9, rcx
lea rcx, str.e_31m
mov r8, rcx
lea rcx, str._sERROR_s:
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fprintf
call sub.msvcrt.dll___iob_func
add rax, 0x60
lea rcx, str.Failed_to_get_username_n
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fprintf
call sub.msvcrt.dll___iob_func
add rax, 0x60
lea rcx, [0x004032f5]
mov qword [rsp + 0x20], rcx
lea rcx, str.e_34msimple.c
mov r9, rcx
lea rcx, [0x004032e1]
mov r8, rcx
lea rcx, str._n_sIn_file:__s_s_n
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fprintf
call sub.msvcrt.dll___iob_func
add rax, 0x60
lea rcx, [0x00403319]
mov qword [rsp + 0x28], rcx
mov ecx, 0x23
mov qword [rsp + 0x20], rcx
lea rcx, [0x00403313]
mov r9, rcx
lea rcx, [0x0040330d]
mov r8, rcx
lea rcx, str._sIn_line:__s_d_s_n
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fprintf
call sub.msvcrt.dll___iob_func
add rax, 0x60
lea rcx, str.e_0m
mov qword [rsp + 0x28], rcx
lea rcx, str.log_discord
mov qword [rsp + 0x20], rcx
lea rcx, str.e_34m
mov r9, rcx
lea rcx, str.e_36m
mov r8, rcx
lea rcx, str._sIn_function:__s_s_s_n
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fprintf
mov eax, 1
jmp 0x40132f
mov eax, 0
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, dword [0x00403118]
cmp eax, ecx
jge 0x40132a
jmp 0x401194
mov eax, dword [rbp - 0xc]
mov rcx, rax
add eax, 1
mov dword [rbp - 0xc], eax
jmp 0x401170
movabs rax, 0x400
mov r11, rax
movabs rax, 1
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x18], rax
movabs rax, 0x400
mov r11, rax
movabs rax, 1
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x20], rax
movabs rax, 0
mov qword [rbp - 0x28], rax
mov eax, 0
mov dword [rbp - 0x2c], eax
movabs rax, 0
mov qword [rbp - 0x38], rax
mov eax, dword [rbp - 0xc]
movsxd rax, eax
shl rax, 3
mov rcx, qword [0x00403120]
add rcx, rax
mov rax, qword [rcx]
add rax, 8
mov rcx, qword [rbp - 8]
mov r8, rcx
mov rcx, qword [rax]
mov r11, rcx
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_sprintf
mov eax, dword [rbp - 0xc]
movsxd rax, eax
shl rax, 3
mov rcx, qword [0x00403120]
add rcx, rax
mov rax, qword [rcx]
mov rcx, qword [rbp - 8]
mov r8, rcx
mov rcx, qword [rax]
mov r11, rcx
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_sprintf
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
call fcn.00401750
mov qword [rbp - 0x38], rax
cmp rax, 0
jne 0x4012ba
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
jmp 0x401186
lea rax, [rbp - 0x2c]
mov r8, rax
lea rax, [rbp - 0x28]
mov r11, rax
mov rax, qword [rbp - 0x38]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401aec
cmp eax, 0
je 0x4012e8
jmp 0x401307
mov eax, dword [rbp - 0x2c]
mov r8, rax
mov rax, qword [rbp - 0x28]
mov r11, rax
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00401efc
mov rax, qword [rbp - 0x18]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x20]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_free
jmp 0x401186
mov eax, 0
leave
ret