Function at 0x45f520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2080
call fcn.00469d10
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.0046a390
mov ecx, 0x4c3f18
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f560
sub ecx, edx
sar ecx, 1
jne 0x45f593
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 0x45f6d4
mov eax, dword [0x4c3f0c]
test eax, eax
jne 0x45f5e0
push 0x495d38
push eax
call edi
mov dword [0x4c3f0c], eax
test eax, eax
jne 0x45f5e0
push eax
push 0x495d38
call edi
mov dword [0x4c3f0c], eax
test eax, eax
jne 0x45f5e0
mov dword [0x4c3f0c], 0xffffffff
jmp 0x45f6d4
cmp eax, 0xffffffff
je 0x45f6d4
xor eax, eax
push 0xf9e
push eax
mov word [ebp - 0x106c], ax
lea eax, [ebp - 0x106a]
push eax
call fcn.0046a390
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x106c]
push 0x7d0
push eax
call fcn.0046d648
lea eax, [ebp - 0x106c]
push eax
push dword [0x4c4120]
lea eax, [ebp - 0x206c]
push 0x495d4c
push 0x800
push eax
call fcn.0046988e
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 0x45f655
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x45f67b
mov dword [ebp - 0x2070], 0
jmp 0x45f69c
add esi, esi
mov eax, esi
call fcn.0046dbb0
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 0x45f6a5
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 0x45f7e3
mov eax, dword [0x4c3f10]
test eax, eax
jne 0x45f70a
push eax
push 0x495d5c
call edi
mov dword [0x4c3f10], eax
test eax, eax
jne 0x45f70a
mov dword [0x4c3f10], 0xffffffff
jmp 0x45f7e3
cmp eax, 0xffffffff
je 0x45f7e3
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.0046a390
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.0046a390
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x106c]
push 0x7d0
push eax
call fcn.0046d648
lea eax, [ebp - 0x106c]
push eax
push dword [0x4c4120]
lea eax, [ebp - 0xcc]
push eax
push 0x495d64
lea eax, [ebp - 0x206c]
push 0x800
push eax
call fcn.0046988e
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 0x45f86a
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 0x45f86a
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 0x45f827
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 0x495d94
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.004698aa
mov esp, ebp
pop ebp
ret