Function at 0x4696f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0046f160
mov eax, dword [0x4af6f0]
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.0046f7e0
mov ecx, 0x4cfbf8
add esp, 0xc
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469730
sub ecx, edx
jne 0x46975c
push 0x104
push 0x4cfbf8
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4cfbf8
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [0x4cfcfc], eax
cmp dword [0x4af52c], 0
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x46983d
mov eax, dword [0x4cfbec]
test eax, eax
jne 0x4697a0
push str.TMonitor
push eax
call esi
mov dword [0x4cfbec], eax
test eax, eax
jne 0x4697a0
mov dword [0x4cfbec], 0xffffffff
jmp 0x46983d
cmp eax, 0xffffffff
je 0x46983d
push 0x7cf
lea eax, [ebp - 0x837]
mov byte [ebp - 0x838], 0
push 0
push eax
call fcn.0046f7e0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x838]
push 0x7d0
push eax
call fcn.00474d81
lea eax, [ebp - 0x838]
push eax
push dword [0x4cfcfc]
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 0x469814
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1040], eax
lea eax, [ebp - 0x1044]
push eax
push 0
push 0x4a
push dword [0x4cfbec]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4af528], 0
je 0x469933
mov eax, dword [0x4cfbf0]
test eax, eax
jne 0x469873
push eax
push 0x49e654
call esi
mov dword [0x4cfbf0], eax
test eax, eax
jne 0x469873
mov dword [0x4cfbf0], 0xffffffff
jmp 0x469933
cmp eax, 0xffffffff
je 0x469933
push 0x63
lea eax, [ebp - 0x67]
mov byte [ebp - 0x68], 0
push 0
push eax
call fcn.0046f7e0
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.0046f7e0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x838]
push 0x7d0
push eax
call fcn.00474d81
lea eax, [ebp - 0x838]
push eax
push dword [0x4cfcfc]
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 [0x4cfbf0]
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 [0x4cf9d0], 0
je 0x4699b0
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 0x4699b0
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 0x469973
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 0x49e63c
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.0046ecfa
mov esp, ebp
pop ebp
ret