Function at 0x408e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xce8
mov eax, dword [0x427330]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x430], 0
push 0x427
push 0
lea eax, [ebp - 0x42f]
push eax
call fcn.00411070
add esp, 0xc
push 0x432400
call fcn.00410c60
add esp, 4
test eax, eax
jne 0x408f21
push 0x104
push 0x432400
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x432400
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [0x4323f8], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push 0x432400
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x408f21
lea ecx, [ebp - 0x43c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x427048], 0
je 0x409019
cmp dword [0x4323f4], 0
jne 0x408f5c
push str.TMonitor
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4323f4], eax
cmp dword [0x4323f4], 0
jne 0x408f5c
mov dword [0x4323f4], 0xffffffff
cmp dword [0x4323f4], 0xffffffff
je 0x409019
mov byte [ebp - 0x858], 0
push 0x400
push 0
lea ecx, [ebp - 0x857]
push ecx
call fcn.00411070
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x858]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x858]
push eax
mov ecx, dword [0x4323f8]
push ecx
push str.__s___s
lea edx, [ebp - 0x430]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x44c], 0
lea eax, [ebp - 0x430]
mov dword [ebp - 0x444], eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.00410c60
add esp, 4
add eax, 1
mov dword [ebp - 0x448], eax
lea edx, [ebp - 0x44c]
push edx
push 0
push 0x4a
mov eax, dword [0x4323f4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x427044], 0
je 0x40914c
cmp dword [0x4323f0], 0
jne 0x409054
push 0
push 0x422b48
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x4323f0], eax
cmp dword [0x4323f0], 0
jne 0x409054
mov dword [0x4323f0], 0xffffffff
cmp dword [0x4323f0], 0xffffffff
je 0x40914c
mov byte [ebp - 0xce0], 0
push 0x400
push 0
lea ecx, [ebp - 0xcdf]
push ecx
call fcn.00411070
add esp, 0xc
mov byte [ebp - 0x8d8], 0
push 0x63
push 0
lea edx, [ebp - 0x8d7]
push edx
call fcn.00411070
add esp, 0xc
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x64
lea ecx, [ebp - 0x8d8]
push ecx
push 0
lea edx, [ebp - 0x870]
push edx
push 0x80000008
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x85c], eax
mov ecx, dword [ebp - 0x85c]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xce0]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
mov dword [ebp - 0x85c], 0
lea ecx, [ebp - 0xce0]
push ecx
mov edx, dword [0x4323f8]
push edx
lea eax, [ebp - 0x8d8]
push eax
push str._s____s___s
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x78
mov edx, dword [0x4323f0]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x860], eax
lea eax, [ebp - 0x430]
push eax
push 0
push 0x180
mov ecx, dword [ebp - 0x860]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x4321d4], 0
je 0x4091ec
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 - 0xce4], eax
cmp dword [ebp - 0xce4], 0xffffffff
je 0x4091ec
push 2
push 0
push 0
mov edx, dword [ebp - 0xce4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xce8]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.00410c60
add esp, 4
push eax
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 0xce4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0xce8]
push ecx
push 2
push 0x422b70
mov edx, dword [ebp - 0xce4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xce4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411054
mov esp, ebp
pop ebp
ret