Function at 0x469290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2080
call fcn.0046f060
mov eax, dword [0x4af6f0]
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.0046f6e0
mov ecx, 0x4cf9e0
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4692d0
sub ecx, edx
sar ecx, 1
jne 0x469303
push 0x104
push 0x4cf9e0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4cf9e0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [0x4cfbe8], eax
cmp dword [0x4af52c], 0
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
je 0x469444
mov eax, dword [0x4cf9d8]
test eax, eax
jne 0x469350
push 0x49e570
push eax
call edi
mov dword [0x4cf9d8], eax
test eax, eax
jne 0x469350
push eax
push 0x49e570
call edi
mov dword [0x4cf9d8], eax
test eax, eax
jne 0x469350
mov dword [0x4cf9d8], 0xffffffff
jmp 0x469444
cmp eax, 0xffffffff
je 0x469444
xor eax, eax
push 0xf9e
push eax
mov word [ebp - 0x106c], ax
lea eax, [ebp - 0x106a]
push eax
call fcn.0046f6e0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x106c]
push 0x7d0
push eax
call fcn.00473222
lea eax, [ebp - 0x106c]
push eax
push dword [0x4cfbe8]
lea eax, [ebp - 0x206c]
push 0x49e584
push 0x800
push eax
call fcn.0046ebde
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 0x4693c5
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x4693eb
mov dword [ebp - 0x2070], 0
jmp 0x46940c
add esi, esi
mov eax, esi
call fcn.004704a0
mov eax, esp
lea ecx, [ebp - 0x206c]
push 3
push esi
push ecx
push eax
call fcn.0045bcd0
mov dword [ebp - 0x2070], eax
lea ecx, [ebp - 0x206c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469415
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 [0x4cf9d8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4af528], 0
je 0x469553
mov eax, dword [0x4cf9dc]
test eax, eax
jne 0x46947a
push eax
push 0x49e594
call edi
mov dword [0x4cf9dc], eax
test eax, eax
jne 0x46947a
mov dword [0x4cf9dc], 0xffffffff
jmp 0x469553
cmp eax, 0xffffffff
je 0x469553
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.0046f6e0
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.0046f6e0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x106c]
push 0x7d0
push eax
call fcn.00473222
lea eax, [ebp - 0x106c]
push eax
push dword [0x4cfbe8]
lea eax, [ebp - 0xcc]
push eax
push 0x49e59c
lea eax, [ebp - 0x206c]
push 0x800
push eax
call fcn.0046ebde
add esp, 0x34
push 0x78
push dword [0x4cf9dc]
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 [0x4cf9d0], 0
je 0x4695da
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 0x4695da
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 0x469597
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 0x49e5cc
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.0046ebfa
mov esp, ebp
pop ebp
ret