Function at 0x45b650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push 0x58
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004c9b50
mov ecx, dword [0x5306c8]
mov dword [ebp - 0x90], ecx
add esp, 0xc
lea ecx, [ebp - 0x94]
lea edx, [ebp - 0x2d8]
xor eax, eax
push ecx
mov dword [ebp - 0x94], 0x58
mov dword [ebp - 0x88], str.Log_files__.csv_
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], edx
mov word [ebp - 0x2d8], ax
mov dword [ebp - 0x74], 0x104
mov dword [ebp - 0x64], str.Save_shell_and_processes_log...
mov dword [ebp - 0x58], 0x4fa164
mov dword [ebp - 0x60], 0x88080e
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x45b8e4
push ebx
push 0
push 0
push 4
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x45b8ce
cmp ebx, 0xffffffff
je 0x45b8ce
push esi
push edi
push 0x80000
call fcn.0044c4d0
mov esi, eax
xor eax, eax
add esp, 4
xor edi, edi
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
lea esp, [esp]
test edi, edi
je 0x45b768
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x4e599c
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
push ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x105f
push ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x40000
call edi
test eax, eax
je 0x45b7c1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b791
sub eax, edx
sar eax, 1
add eax, eax
je 0x45b7b6
push 0
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
jmp 0x45b750
mov edx, dword [ebp - 4]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0x4e77f4
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], 0
jle 0x45b8b2
push 0
push 0
push 0x1004
push ebx
call edi
xor ebx, ebx
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x45b8b2
jmp 0x45b800
xor edi, edi
cmp dword [ebp - 8], edi
jle 0x45b891
jmp 0x45b810
test edi, edi
je 0x45b82b
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x4e599c
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xd0]
push eax
push ebx
push 0x1073
xor edx, edx
push ecx
mov word [esi], dx
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xb8], 0x40000
mov dword [ebp - 0xbc], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b862
sub eax, edx
sar eax, 1
add eax, eax
je 0x45b887
push 0
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, dword [ebp - 8]
jl 0x45b810
mov edx, dword [ebp - 4]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0x4e77f4
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x45b800
push esi
call fcn.0044c4f0
mov eax, dword [ebp - 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0
push str.Create_log_file_failed_
call fcn.004263e0
add esp, 0x14
pop ebx
mov esp, ebp
pop ebp
ret 4