Function at 0x402fa0
Capabilities:
Get common file path
List user accounts

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4088c6
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x40d024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1a4], 0
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1a0]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x19c]
push eax
push 2
push 0
push 0
call dword [sym.imp.NETAPI32.dll_NetUserEnum]
mov edi, eax
mov dword [ebp - 0x1ac], edi
test edi, edi
je 0x40306c
cmp edi, 0xea
je 0x40306c
push edi
push str.A_system_error_has_occurred:__d_n
push 2
call esi
add esp, 4
push eax
call fcn.004010e0
mov eax, dword [ebp - 0x19c]
add esp, 0xc
jmp 0x4030ad
mov eax, dword [ebp - 0x19c]
mov ebx, eax
test eax, eax
je 0x4030c0
xor edi, edi
mov dword [ebp - 0x1a8], edi
cmp edi, dword [ebp - 0x1a0]
jae 0x4030a7
test ebx, ebx
jne 0x4030f3
push str.An_access_violation_has_occurred_n
push 2
call esi
add esp, 4
push eax
call fcn.004010e0
mov eax, dword [ebp - 0x19c]
add esp, 8
mov edi, dword [ebp - 0x1ac]
test eax, eax
je 0x4030c0
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
xor eax, eax
mov dword [ebp - 0x19c], eax
cmp edi, 0xea
je 0x403010
test eax, eax
je 0x4030d7
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004076ea
mov esp, ebp
pop ebp
ret
mov eax, dword [0x409618]
movups xmm0, xmmword [str.Users.txt]
push 0xec
mov dword [ebp - 0x368], eax
lea eax, [ebp - 0x364]
push 0
push eax
movups xmmword [ebp - 0x378], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x198]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403176
lea eax, [ebp - 0x378]
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403140
lea edi, [ebp - 0x198]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403156
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0x278]
call fcn.00404ae0
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x198]
lea ecx, [ebp - 0x274]
push eax
call fcn.00405ef0
test eax, eax
lea ecx, [ebp - 0x278]
mov eax, dword [ebp - 0x278]
push 0
mov eax, dword [eax + 4]
jne 0x4031bc
push 2
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x4031c6
push 0
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
push 0x80
push dword [ebx]
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
add esp, 0xc
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x278]
call fcn.00406940
push 0x406b80
lea ecx, [ebp - 0x278]
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_____]
cmp dword [ebp - 0x228], 0
lea esi, [ebp - 0x274]
jne 0x403212
xor esi, esi
jmp 0x40323a
lea ecx, [ebp - 0x274]
call fcn.00405d20
push dword [ebp - 0x228]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
lea ecx, [ebp - 0x274]
mov byte [ebp - 0x22c], 0
mov byte [ebp - 0x237], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x40d858]
mov dword [ebp - 0x234], eax
mov eax, dword [0x40d85c]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x23c], 0
test esi, esi
jne 0x40329c
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x278]
push esi
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
inc dword [ebp - 0x1a4]
add ebx, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x278]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x27c], eax
lea ecx, [ebp - 0x274]
call fcn.00405580
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x210]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x19c]
inc edi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x40307a