Function at 0x45f880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.00469d10
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7ff
lea eax, [ebp - 0x1037]
mov byte [ebp - 0x1038], 0
push 0
push eax
call fcn.0046a390
mov ecx, 0x4c4130
add esp, 0xc
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f8c0
sub ecx, edx
jne 0x45f8ec
push 0x104
push 0x4c4130
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4c4130
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [0x4c4234], eax
cmp dword [0x4a852c], 0
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x45f9cd
mov eax, dword [0x4c4124]
test eax, eax
jne 0x45f930
push str.TMonitor
push eax
call esi
mov dword [0x4c4124], eax
test eax, eax
jne 0x45f930
mov dword [0x4c4124], 0xffffffff
jmp 0x45f9cd
cmp eax, 0xffffffff
je 0x45f9cd
push 0x7cf
lea eax, [ebp - 0x837]
mov byte [ebp - 0x838], 0
push 0
push eax
call fcn.0046a390
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x838]
push 0x7d0
push eax
call fcn.0046f392
lea eax, [ebp - 0x838]
push eax
push dword [0x4c4234]
lea eax, [ebp - 0x1038]
push str.__s___s
push eax
call edi
lea eax, [ebp - 0x1038]
mov dword [ebp - 0x1044], 0
mov ecx, eax
mov dword [ebp - 0x103c], eax
add esp, 0x2c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45f9a4
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1040], eax
lea eax, [ebp - 0x1044]
push eax
push 0
push 0x4a
push dword [0x4c4124]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4a8528], 0
je 0x45fac3
mov eax, dword [0x4c4128]
test eax, eax
jne 0x45fa03
push eax
push 0x495dac
call esi
mov dword [0x4c4128], eax
test eax, eax
jne 0x45fa03
mov dword [0x4c4128], 0xffffffff
jmp 0x45fac3
cmp eax, 0xffffffff
je 0x45fac3
push 0x63
lea eax, [ebp - 0x67]
mov byte [ebp - 0x68], 0
push 0
push eax
call fcn.0046a390
add esp, 0xc
lea eax, [ebp - 0x1048]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x64
lea eax, [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0x1048]
push eax
push inet_addr
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0x7cf
lea eax, [ebp - 0x837]
mov byte [ebp - 0x838], 0
push 0
push eax
call fcn.0046a390
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x838]
push 0x7d0
push eax
call fcn.0046f392
lea eax, [ebp - 0x838]
push eax
push dword [0x4c4234]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x1038]
push str._s____s___s
push eax
call edi
add esp, 0x30
push 0x78
push dword [0x4c4128]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x1038]
push ecx
push 0
push 0x180
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x4c3f04], 0
je 0x45fb40
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push str.C:log.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45fb40
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x1038]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45fb03
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x104c]
push 0
push eax
sub ecx, edx
lea eax, [ebp - 0x1038]
push ecx
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x104c]
push eax
push 2
push 0x495d94
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004698aa
mov esp, ebp
pop ebp
ret