Function at 0x456e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1840
call fcn.00467dc0
mov eax, dword [0x4cd724]
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.004677c0
add esp, 0xc
push 0x4e8ce8
call fcn.00468280
add esp, 4
test eax, eax
jne 0x456e97
push 0x104
push 0x4e8ce8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4e8ce8
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [0x4e8ce0], eax
cmp dword [0x4cd634], 0
je 0x456f96
cmp dword [0x4e8cdc], 0
jne 0x456ed2
push str.TMonitor
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4e8cdc], eax
cmp dword [0x4e8cdc], 0
jne 0x456ed2
mov dword [0x4e8cdc], 0xffffffff
cmp dword [0x4e8cdc], 0xffffffff
je 0x456f96
mov byte [ebp - 0xfe8], 0
push 0x7cf
push 0
lea ecx, [ebp - 0xfe7]
push ecx
call fcn.004677c0
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.0046e9a6
add esp, 0x10
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0xfe8]
push eax
mov ecx, dword [0x4e8ce0]
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.00468280
add esp, 4
add eax, 1
mov dword [ebp - 0x810], eax
lea edx, [ebp - 0x814]
push edx
push 0
push 0x4a
mov eax, dword [0x4e8cdc]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4cd630], 0
je 0x4570d0
cmp dword [0x4e8cd8], 0
jne 0x456fd1
push 0
push 0x4bd1e0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4e8cd8], eax
cmp dword [0x4e8cd8], 0
jne 0x456fd1
mov dword [0x4e8cd8], 0xffffffff
cmp dword [0x4e8cd8], 0xffffffff
je 0x4570d0
mov byte [ebp - 0x1068], 0
push 0x63
push 0
lea ecx, [ebp - 0x1067]
push ecx
call fcn.004677c0
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.004677c0
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.0046e9a6
add esp, 0x10
mov dword [ebp - 0xff0], 0
lea ecx, [ebp - 0x1838]
push ecx
mov edx, dword [0x4e8ce0]
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 [0x4e8cd8]
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 [0x4e8ac0], 0
je 0x457170
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 0x457170
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.00468280
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 0x4bd208
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.004677af
mov esp, ebp
pop ebp
ret