Function at 0x4699e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2080
call fcn.0046f7a0
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x206c], ax
lea eax, [ebp - 0x206a]
push eax
call fcn.0046fe20
mov ecx, 0x4d0fc0
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469a20
sub ecx, edx
sar ecx, 1
jne 0x469a53
push 0x104
push 0x4d0fc0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4d0fc0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [0x4d11c8], eax
cmp dword [0x4b052c], 0
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
je 0x469b94
mov eax, dword [0x4d0fb8]
test eax, eax
jne 0x469aa0
push 0x49f870
push eax
call edi
mov dword [0x4d0fb8], eax
test eax, eax
jne 0x469aa0
push eax
push 0x49f870
call edi
mov dword [0x4d0fb8], eax
test eax, eax
jne 0x469aa0
mov dword [0x4d0fb8], 0xffffffff
jmp 0x469b94
cmp eax, 0xffffffff
je 0x469b94
xor eax, eax
push 0xf9e
push eax
mov word [ebp - 0x106c], ax
lea eax, [ebp - 0x106a]
push eax
call fcn.0046fe20
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x106c]
push 0x7d0
push eax
call fcn.00473962
lea eax, [ebp - 0x106c]
push eax
push dword [0x4d11c8]
lea eax, [ebp - 0x206c]
push 0x49f884
push 0x800
push eax
call fcn.0046f31e
lea ecx, [ebp - 0x206c]
mov dword [ebp - 0x2078], 0
add esp, 0x30
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469b15
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x469b3b
mov dword [ebp - 0x2070], 0
jmp 0x469b5c
add esi, esi
mov eax, esi
call fcn.00470be0
mov eax, esp
lea ecx, [ebp - 0x206c]
push 3
push esi
push ecx
push eax
call fcn.0045c170
mov dword [ebp - 0x2070], eax
lea ecx, [ebp - 0x206c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469b65
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x2074], eax
lea eax, [ebp - 0x2078]
push eax
push 0
push 0x4a
push dword [0x4d0fb8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4b0528], 0
je 0x469ca3
mov eax, dword [0x4d0fbc]
test eax, eax
jne 0x469bca
push eax
push 0x49f894
call edi
mov dword [0x4d0fbc], eax
test eax, eax
jne 0x469bca
mov dword [0x4d0fbc], 0xffffffff
jmp 0x469ca3
cmp eax, 0xffffffff
je 0x469ca3
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.0046fe20
add esp, 0xc
lea eax, [ebp - 0x207c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0
lea eax, [ebp - 0x207c]
push eax
push inet_addr
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
xor eax, eax
push 0xf9e
push eax
mov word [ebp - 0x106c], ax
lea eax, [ebp - 0x106a]
push eax
call fcn.0046fe20
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x106c]
push 0x7d0
push eax
call fcn.00473962
lea eax, [ebp - 0x106c]
push eax
push dword [0x4d11c8]
lea eax, [ebp - 0xcc]
push eax
push 0x49f89c
lea eax, [ebp - 0x206c]
push 0x800
push eax
call fcn.0046f31e
add esp, 0x34
push 0x78
push dword [0x4d0fbc]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x206c]
push ecx
push 0
push 0x180
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4d0fb0], 0
je 0x469d2a
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 0x469d2a
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x206c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469ce7
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x2080]
push 0
push eax
sub ecx, edx
lea eax, [ebp - 0x206c]
sar ecx, 1
push ecx
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x2080]
push eax
push 2
push 0x49f8cc
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [ebp - 0x2088]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret