Function at 0x4573f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1840
call fcn.00468360
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x808], 0
push 0x7ff
push 0
lea eax, [ebp - 0x807]
push eax
call fcn.00467d60
add esp, 0xc
push 0x4ea110
call fcn.00468820
add esp, 4
test eax, eax
jne 0x457457
push 0x104
push 0x4ea110
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4ea110
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [0x4ea108], eax
cmp dword [0x4ce634], 0
je 0x457556
cmp dword [0x4ea104], 0
jne 0x457492
push str.TMonitor
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4ea104], eax
cmp dword [0x4ea104], 0
jne 0x457492
mov dword [0x4ea104], 0xffffffff
cmp dword [0x4ea104], 0xffffffff
je 0x457556
mov byte [ebp - 0xfe8], 0
push 0x7cf
push 0
lea ecx, [ebp - 0xfe7]
push ecx
call fcn.00467d60
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [ebp - 0x818], edx
mov eax, dword [ebp - 0x818]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x7d0
lea edx, [ebp - 0xfe8]
push edx
call fcn.0046ef46
add esp, 0x10
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0xfe8]
push eax
mov ecx, dword [0x4ea108]
push ecx
push str.__s___s
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x814], 0
lea eax, [ebp - 0x808]
mov dword [ebp - 0x80c], eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.00468820
add esp, 4
add eax, 1
mov dword [ebp - 0x810], eax
lea edx, [ebp - 0x814]
push edx
push 0
push 0x4a
mov eax, dword [0x4ea104]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4ce630], 0
je 0x457690
cmp dword [0x4ea100], 0
jne 0x457591
push 0
push 0x4be430
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4ea100], eax
cmp dword [0x4ea100], 0
jne 0x457591
mov dword [0x4ea100], 0xffffffff
cmp dword [0x4ea100], 0xffffffff
je 0x457690
mov byte [ebp - 0x1068], 0
push 0x63
push 0
lea ecx, [ebp - 0x1067]
push ecx
call fcn.00467d60
add esp, 0xc
lea edx, [ebp - 0x1000]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x64
lea eax, [ebp - 0x1068]
push eax
push 0
lea ecx, [ebp - 0x1000]
push ecx
push inet_addr
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov byte [ebp - 0x1838], 0
push 0x7cf
push 0
lea edx, [ebp - 0x1837]
push edx
call fcn.00467d60
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp - 0xff0], eax
mov ecx, dword [ebp - 0xff0]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x7d0
lea eax, [ebp - 0x1838]
push eax
call fcn.0046ef46
add esp, 0x10
mov dword [ebp - 0xff0], 0
lea ecx, [ebp - 0x1838]
push ecx
mov edx, dword [0x4ea108]
push edx
lea eax, [ebp - 0x1068]
push eax
push str._s____s___s
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x78
mov edx, dword [0x4ea100]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0xfec], eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0x180
mov ecx, dword [ebp - 0xfec]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x4e9ee8], 0
je 0x457730
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 dword [ebp - 0x183c], eax
cmp dword [ebp - 0x183c], 0xffffffff
je 0x457730
push 2
push 0
push 0
mov edx, dword [ebp - 0x183c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1840]
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.00468820
add esp, 4
push eax
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0x183c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x1840]
push ecx
push 2
push 0x4be458
mov edx, dword [ebp - 0x183c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x183c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret