Function at 0x45f4c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2080
call fcn.00469cb0
mov eax, dword [0x4a86f0]
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.0046a330
mov ecx, 0x4c3f18
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f500
sub ecx, edx
sar ecx, 1
jne 0x45f533
push 0x104
push 0x4c3f18
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4c3f18
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [0x4c4120], eax
cmp dword [0x4a852c], 0
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
je 0x45f674
mov eax, dword [0x4c3f0c]
test eax, eax
jne 0x45f580
push 0x495d48
push eax
call edi
mov dword [0x4c3f0c], eax
test eax, eax
jne 0x45f580
push eax
push 0x495d48
call edi
mov dword [0x4c3f0c], eax
test eax, eax
jne 0x45f580
mov dword [0x4c3f0c], 0xffffffff
jmp 0x45f674
cmp eax, 0xffffffff
je 0x45f674
xor eax, eax
push 0xf9e
push eax
mov word [ebp - 0x106c], ax
lea eax, [ebp - 0x106a]
push eax
call fcn.0046a330
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x106c]
push 0x7d0
push eax
call fcn.0046d5e8
lea eax, [ebp - 0x106c]
push eax
push dword [0x4c4120]
lea eax, [ebp - 0x206c]
push 0x495d5c
push 0x800
push eax
call fcn.0046982e
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 0x45f5f5
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x45f61b
mov dword [ebp - 0x2070], 0
jmp 0x45f63c
add esi, esi
mov eax, esi
call fcn.0046db50
mov eax, esp
lea ecx, [ebp - 0x206c]
push 3
push esi
push ecx
push eax
call fcn.0044f9b0
mov dword [ebp - 0x2070], eax
lea ecx, [ebp - 0x206c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f645
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 [0x4c3f0c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4a8528], 0
je 0x45f783
mov eax, dword [0x4c3f10]
test eax, eax
jne 0x45f6aa
push eax
push 0x495d6c
call edi
mov dword [0x4c3f10], eax
test eax, eax
jne 0x45f6aa
mov dword [0x4c3f10], 0xffffffff
jmp 0x45f783
cmp eax, 0xffffffff
je 0x45f783
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.0046a330
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.0046a330
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x106c]
push 0x7d0
push eax
call fcn.0046d5e8
lea eax, [ebp - 0x106c]
push eax
push dword [0x4c4120]
lea eax, [ebp - 0xcc]
push eax
push 0x495d74
lea eax, [ebp - 0x206c]
push 0x800
push eax
call fcn.0046982e
add esp, 0x34
push 0x78
push dword [0x4c3f10]
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 [0x4c3f04], 0
je 0x45f80a
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 0x45f80a
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 0x45f7c7
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 0x495da4
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.0046984a
mov esp, ebp
pop ebp
ret