Function at 0x4ae7dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x6ce
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x58
pop esi
push esi
xor ebx, ebx
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x220], ebx
push ebx
push eax
call fcn.004f5a90
mov eax, dword [0x5a2c8c]
add esp, 0xc
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x260], eax
xor eax, eax
mov dword [ebp - 0x27c], esi
xor esi, esi
mov word [ebp - 0x20c], ax
inc esi
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x270], str.Log_files__.csv_
push eax
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x25c], 0x104
mov dword [ebp - 0x24c], str.Save_shell_and_processes_log...
mov dword [ebp - 0x240], 0x55e218
mov dword [ebp - 0x248], 0x88080e
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4aeac0
push edi
push ebx
push ebx
push 4
pop edi
push edi
push ebx
push esi
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4aeaae
cmp esi, 0xffffffff
je 0x4aeaae
push 0x80000
call fcn.004e1c0a
pop ecx
mov dword [ebp - 0x2a8], edi
mov ebx, eax
push 0xa
xor eax, eax
lea edi, [ebp - 0x2a4]
pop ecx
rep stosd dword es:[edi], eax
mov edi, eax
mov dword [ebp - 0x210], eax
test edi, edi
je 0x4ae907
push eax
lea eax, [ebp - 0x210]
push eax
push 2
push 0x547318
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x29c], ebx
push eax
push edi
push 0x105f
push dword [ebp - 0x218]
mov dword [ebp - 0x298], 0x40000
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4ae968
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x220]
jne 0x4ae939
sub ecx, edx
sar ecx, 1
add ecx, ecx
je 0x4ae963
xor eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
xor eax, eax
jmp 0x4ae8ed
xor eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
push 4
push 0x5219f4
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
jle 0x4aea9e
xor eax, eax
push eax
push eax
push 0x1004
push dword [ebp - 0x218]
call dword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov dword [ebp - 0x224], eax
mov ecx, edx
mov dword [ebp - 0x214], ecx
test eax, eax
jle 0x4aea9e
mov eax, edx
mov dword [ebp - 0x21c], eax
test edi, edi
jle 0x4aea6c
test eax, eax
je 0x4ae9eb
push edx
lea eax, [ebp - 0x210]
push eax
push 2
push 0x547318
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x2dc], eax
xor edx, edx
lea eax, [ebp - 0x2e4]
mov word [ebx], dx
push eax
push ecx
push 0x1073
push dword [ebp - 0x218]
mov dword [ebp - 0x2cc], 0x40000
mov dword [ebp - 0x2d0], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x220]
jne 0x4aea24
sub ecx, edx
sar ecx, 1
add ecx, ecx
je 0x4aea4e
xor eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x21c], eax
push 0
pop edx
cmp eax, edi
jl 0x4ae9c5
push edx
lea eax, [ebp - 0x210]
push eax
push 4
push 0x5219f4
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x214]
inc ecx
push 0
mov dword [ebp - 0x214], ecx
pop edx
cmp ecx, dword [ebp - 0x224]
jl 0x4ae9b5
push ebx
call fcn.004e1bea
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4aeabf
push ebx
push ebx
push ebx
push ebx
push str.Create_log_file_failed_
call fcn.00420ad9
add esp, 0x14
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret