Function at 0x469d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0046f7a0
mov eax, dword [0x4b06f0]
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.0046fe20
mov ecx, 0x4d11d8
add esp, 0xc
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469d80
sub ecx, edx
jne 0x469dac
push 0x104
push 0x4d11d8
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4d11d8
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [0x4d12dc], eax
cmp dword [0x4b052c], 0
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x469e8d
mov eax, dword [0x4d11cc]
test eax, eax
jne 0x469df0
push str.TMonitor
push eax
call esi
mov dword [0x4d11cc], eax
test eax, eax
jne 0x469df0
mov dword [0x4d11cc], 0xffffffff
jmp 0x469e8d
cmp eax, 0xffffffff
je 0x469e8d
push 0x7cf
lea eax, [ebp - 0x837]
mov byte [ebp - 0x838], 0
push 0
push eax
call fcn.0046fe20
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x838]
push 0x7d0
push eax
call fcn.004753c1
lea eax, [ebp - 0x838]
push eax
push dword [0x4d12dc]
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 0x469e64
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1040], eax
lea eax, [ebp - 0x1044]
push eax
push 0
push 0x4a
push dword [0x4d11cc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b0528], 0
je 0x469f83
mov eax, dword [0x4d11d0]
test eax, eax
jne 0x469ec3
push eax
push 0x49f8e4
call esi
mov dword [0x4d11d0], eax
test eax, eax
jne 0x469ec3
mov dword [0x4d11d0], 0xffffffff
jmp 0x469f83
cmp eax, 0xffffffff
je 0x469f83
push 0x63
lea eax, [ebp - 0x67]
mov byte [ebp - 0x68], 0
push 0
push eax
call fcn.0046fe20
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.0046fe20
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x838]
push 0x7d0
push eax
call fcn.004753c1
lea eax, [ebp - 0x838]
push eax
push dword [0x4d12dc]
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 [0x4d11d0]
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 [0x4d0fb0], 0
je 0x46a000
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 0x46a000
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 0x469fc3
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 0x49f8cc
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.0046f33a
mov esp, ebp
pop ebp
ret