Function at 0x469390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2080
call fcn.0046f160
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.0046f7e0
mov ecx, 0x4cf9e0
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4693d0
sub ecx, edx
sar ecx, 1
jne 0x469403
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 0x469544
mov eax, dword [0x4cf9d8]
test eax, eax
jne 0x469450
push 0x49e5e0
push eax
call edi
mov dword [0x4cf9d8], eax
test eax, eax
jne 0x469450
push eax
push 0x49e5e0
call edi
mov dword [0x4cf9d8], eax
test eax, eax
jne 0x469450
mov dword [0x4cf9d8], 0xffffffff
jmp 0x469544
cmp eax, 0xffffffff
je 0x469544
xor eax, eax
push 0xf9e
push eax
mov word [ebp - 0x106c], ax
lea eax, [ebp - 0x106a]
push eax
call fcn.0046f7e0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x106c]
push 0x7d0
push eax
call fcn.00473322
lea eax, [ebp - 0x106c]
push eax
push dword [0x4cfbe8]
lea eax, [ebp - 0x206c]
push 0x49e5f4
push 0x800
push eax
call fcn.0046ecde
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 0x4694c5
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x4694eb
mov dword [ebp - 0x2070], 0
jmp 0x46950c
add esi, esi
mov eax, esi
call fcn.004705a0
mov eax, esp
lea ecx, [ebp - 0x206c]
push 3
push esi
push ecx
push eax
call fcn.0045bd30
mov dword [ebp - 0x2070], eax
lea ecx, [ebp - 0x206c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469515
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 0x469653
mov eax, dword [0x4cf9dc]
test eax, eax
jne 0x46957a
push eax
push 0x49e604
call edi
mov dword [0x4cf9dc], eax
test eax, eax
jne 0x46957a
mov dword [0x4cf9dc], 0xffffffff
jmp 0x469653
cmp eax, 0xffffffff
je 0x469653
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.0046f7e0
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.0046f7e0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x106c]
push 0x7d0
push eax
call fcn.00473322
lea eax, [ebp - 0x106c]
push eax
push dword [0x4cfbe8]
lea eax, [ebp - 0xcc]
push eax
push 0x49e60c
lea eax, [ebp - 0x206c]
push 0x800
push eax
call fcn.0046ecde
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 0x4696da
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 0x4696da
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 0x469697
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 0x49e63c
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.0046ecfa
mov esp, ebp
pop ebp
ret