Function at 0x464490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov esi, dword [ebp + 8]
movaps xmm0, xmmword [0x4f6fa0]
movups xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x10]
push eax
call dbg.ffDetectUsers
add esp, 4
test eax, eax
je 0x464503
add esi, 0x20
push eax
push 0x4f6fc6
push 0
push esi
push 0
push str.Users
call dbg.ffPrintError
add esp, 0x18
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4644fb
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push eax
call sym._free
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x20]
test eax, eax
je 0x4645c0
cmp dword [esi + 0x3c], 0
je 0x4645d2
lea edi, [esp + 0x3c]
xor ebx, ebx
mov esi, ecx
nop word cs:[eax + eax]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
imul edx, ebx
inc ebx
cmp eax, 1
lea eax, [ecx + edx]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 7
lea eax, [ecx + edx + 0xc]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 7
lea eax, [ecx + edx + 0x24]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 7
lea eax, [ecx + edx + 0x18]
mov dword [esp + 0x58], eax
lea eax, [ecx + edx + 0x30]
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], eax
mov eax, ebx
mov ecx, 0
cmove eax, ecx
movzx eax, al
push edi
push 5
push 0
push esi
push eax
push str.Users
call dbg.ffPrintFormat
add esp, 0x18
mov eax, dword [esp + 0x18]
cmp ebx, eax
jb 0x464530
jmp 0x464a59
push str.Unable_to_detect_any_users
push 0x4f6fc6
push 0
push ecx
jmp 0x4644cb
cmp byte [esi + 0x48], 0
je 0x464675
push 0
push ecx
push 0
push str.Users
call dbg.ffPrintLogoAndKey
add esp, 0x10
mov eax, dword [0x5052b0]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x464867
mov ecx, dword [esp + 0x10]
xor edx, edx
test ecx, ecx
je 0x464870
mov edi, dword [ecx + 4]
test edi, edi
je 0x464870
mov ecx, dword [ecx + 8]
mov ebx, 0
test ecx, ecx
je 0x464872
mov dword [esp + 8], ecx
lea eax, [edi + 1]
mov ecx, 0x20
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp eax, ebx
ja 0x464640
push ebx
call sym._malloc
add esp, 4
mov dword [esp + 4], eax
mov byte [eax], 0
push edi
push dword [esp + 0xc]
push eax
call sym._memcpy
mov eax, dword [esp + 0x10]
add esp, 0xc
mov byte [eax + edi], 0
mov edx, edi
jmp 0x464872
xor edx, edx
mov dword [esp + 0x20], ecx
jmp 0x464694
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
cmp edx, eax
mov ecx, dword [esp + 0x20]
jae 0x464a59
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
imul edi, edx
inc edx
cmp eax, 1
mov dword [esp + 8], edx
mov eax, edx
mov edx, 0
cmove eax, edx
movzx eax, al
push 0
push ecx
push eax
push str.Users
call dbg.ffPrintLogoAndKey
mov ecx, esi
add esp, 0x10
mov esi, dword [esi + edi]
mov dword [esp + 0x24], esi
test esi, esi
mov dword [esp + 4], ecx
je 0x4646f0
push esi
call sym._malloc
mov ecx, dword [esp + 8]
add esp, 4
mov byte [eax], 0
jmp 0x4646f5
mov eax, dword [0x5052b0]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0
mov edx, dword [ecx + edi + 4]
test edx, edx
je 0x4647a4
mov ebx, dword [ecx + edi + 8]
mov dword [esp], ebx
test ebx, ebx
je 0x4647a4
mov ecx, esi
sub ecx, 1
jb 0x464730
cmp ecx, edx
jb 0x464730
mov ecx, dword [esp]
jmp 0x464783
cmp esi, 2
mov ecx, esi
mov ebx, edx
mov edx, 0x20
cmovb ecx, edx
mov dword [esp + 0xc], ebx
lea edx, [ebx + 1]
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x464750
test esi, esi
je 0x464768
push ebx
push eax
call sym._realloc
add esp, 8
jmp 0x464774
push ebx
call sym._malloc
add esp, 4
mov byte [eax], 0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
push edx
push ecx
push eax
mov esi, edx
call sym._memcpy
add esp, 0xc
add esi, dword [esp + 0x28]
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x2c]
mov byte [eax + esi], 0
mov ecx, dword [esp + 4]
cmp dword [ecx + edi + 0x10], 0
je 0x4647c5
push dword [ecx + edi + 0x14]
push 0x4f6fe4
lea eax, [esp + 0x2c]
push eax
call dbg.ffStrbufAppendF
mov ecx, dword [esp + 0x10]
add esp, 0xc
mov eax, dword [ecx + edi + 0x30]
mov ecx, dword [ecx + edi + 0x34]
mov edx, eax
or edx, ecx
je 0x464822
push 0
push 0x3e8
push ecx
push eax
call sym.___udivdi3
add esp, 0x10
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
add esp, 4
push eax
push str._FT_T_z
push 0x40
lea esi, [esp + 0x70]
push esi
call sym._strftime
add esp, 0x10
push esi
push str.___login_time__s
lea eax, [esp + 0x2c]
push eax
call dbg.ffStrbufAppendF
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
mov edi, dword [esp + 0x2c]
push eax
push dword [esp + 0x2c]
push 1
push edi
call sym._fwrite
add esp, 0x10
push esi
push 0xa
call sym._fputc
add esp, 8
cmp dword [esp + 0x24], 0
je 0x464680
push edi
call sym._free
add esp, 4
jmp 0x464680
xor edi, edi
xor esi, esi
jmp 0x464a1b
xor ebx, ebx
cmp esi, 2
jb 0x464a17
mov dword [esp + 4], 1
mov dword [esp], eax
jmp 0x4648c8
mov ebx, esi
mov edi, dword [esp + 0x20]
mov esi, eax
add eax, edi
push dword [esp]
push edx
push eax
call sym._memcpy
add esp, 0xc
add edi, dword [esp]
mov byte [esi + edi], 0
mov eax, esi
mov esi, ebx
mov ebx, edi
mov ecx, dword [esp + 4]
inc ecx
mov dword [esp], eax
mov edx, ebx
mov edi, ebx
mov ebx, esi
mov dword [esp + 4], ecx
cmp ecx, dword [esp + 0x18]
jae 0x464a1b
test ebx, ebx
mov dword [esp + 8], edx
je 0x4648db
mov eax, edx
not eax
add eax, ebx
cmp eax, 1
ja 0x46490f
cmp ebx, 2
mov eax, ebx
mov ecx, 0x20
cmovb eax, ecx
lea ecx, [edx + 3]
nop dword [eax + eax]
mov esi, eax
add eax, eax
cmp ecx, esi
ja 0x4648f0
test ebx, ebx
je 0x464916
push esi
push dword [esp + 4]
call sym._realloc
mov edx, dword [esp + 0x10]
add esp, 8
jmp 0x464950
mov eax, dword [esp]
mov esi, ebx
jmp 0x464950
push esi
call sym._malloc
mov edx, dword [esp + 0xc]
add esp, 4
test edx, edx
je 0x464942
lea ecx, [edx + 1]
push ecx
push dword [esp + 4]
push eax
mov edi, eax
call sym._memcpy
mov edx, dword [esp + 0x14]
mov eax, edi
add esp, 0xc
jmp 0x464950
mov byte [eax], 0
nop word cs:[eax + eax]
mov word [eax + edx], 0x202c
lea ebx, [edx + 2]
mov byte [eax + edx + 2], 0
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4648ac
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 4]
mov edi, dword [edx + ecx + 4]
test edi, edi
je 0x4648ac
mov edx, dword [edx + ecx + 8]
test edx, edx
je 0x4648ac
test esi, esi
mov dword [esp + 0x20], ebx
mov dword [esp], edi
je 0x4649a7
mov ecx, esi
sub ecx, dword [esp + 8]
add ecx, 0xfffffffd
cmp ecx, edi
jae 0x464888
mov dword [esp + 0xc], edx
cmp esi, 2
mov edx, esi
mov ecx, 0x20
cmovb edx, ecx
mov ecx, edi
mov edi, dword [esp + 8]
add ecx, edi
add ecx, 3
add edi, 3
nop word cs:[eax + eax]
mov ebx, edx
add edx, edx
cmp ecx, ebx
ja 0x4649d0
test esi, esi
je 0x4649e8
push ebx
push eax
call sym._realloc
add esp, 8
jmp 0x464a0e
mov esi, eax
push ebx
call sym._malloc
add esp, 4
cmp dword [esp + 0x20], 0
je 0x464a0b
push edi
push esi
push eax
mov esi, eax
call sym._memcpy
mov eax, esi
add esp, 0xc
jmp 0x464a0e
mov byte [eax], 0
mov edx, dword [esp + 0xc]
jmp 0x46488a
mov edi, edx
mov esi, ebx
mov dword [esp + 4], eax
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ebx, eax
push eax
push edi
mov edi, dword [esp + 0xc]
push 1
push edi
call sym._fwrite
add esp, 0x10
push ebx
push 0xa
call sym._fputc
add esp, 8
test esi, esi
je 0x464a55
push edi
call sym._free
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4644da
mov esi, dword [esp + 0x10]
lea edi, [esi + 0x38]
add esi, 0x2c
jmp 0x464a92
mov dword [esi - 0x24], eax
mov eax, edi
sub eax, dword [esp + 0x10]
sar eax, 3
imul eax, eax, 0xb6db6db7
add edi, 0x38
add esi, 0x38
cmp eax, dword [esp + 0x18]
jge 0x4644da
cmp dword [esi - 0x14], 0
mov dword [esi - 0x10], 0
je 0x464ab1
mov dword [esi - 0x14], 0
push dword [esi - 0xc]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi - 0xc], eax
cmp dword [esi - 0x20], 0
mov dword [esi - 0x1c], 0
je 0x464add
mov dword [esi - 0x20], 0
push dword [esi - 0x18]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi - 0x18], eax
cmp dword [esi - 8], 0
mov dword [esi - 4], 0
je 0x464b03
mov dword [esi - 8], 0
push dword [esi]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esi], eax
cmp dword [esi - 0x2c], 0
mov dword [esi - 0x28], 0
je 0x464a70
mov dword [esi - 0x2c], 0
push dword [esi - 0x24]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
jmp 0x464a70