Function at 0x457270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x305c
call fcn.00468610
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x1008], ax
push 0xffe
push 0
lea ecx, [ebp - 0x1006]
push ecx
call fcn.00468010
add esp, 0xc
push 0x4e9f20
call fcn.004687a8
add esp, 4
test eax, eax
jne 0x4572d9
push 0x104
push 0x4e9f20
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4e9f20
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [0x4e9f1c], eax
cmp dword [0x4ce634], 0
je 0x45749a
cmp dword [0x4e9f18], 0
jne 0x45732f
push 0x4be428
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x4e9f18], eax
cmp dword [0x4e9f18], 0
jne 0x45732f
push 0
push 0x4be43c
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x4e9f18], eax
cmp dword [0x4e9f18], 0
jne 0x45732f
mov dword [0x4e9f18], 0xffffffff
cmp dword [0x4e9f18], 0xffffffff
je 0x45749a
xor edx, edx
mov word [ebp - 0x1fc0], dx
push 0xf9e
push 0
lea eax, [ebp - 0x1fbe]
push eax
call fcn.00468010
add esp, 0xc
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1020], ecx
mov edx, dword [ebp - 0x1020]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x7d0
lea ecx, [ebp - 0x1fc0]
push ecx
call fcn.0046d5d0
add esp, 0x10
mov dword [ebp - 0x1020], 0
lea edx, [ebp - 0x1fc0]
push edx
mov eax, dword [0x4e9f1c]
push eax
push 0x4be450
push 0x800
lea ecx, [ebp - 0x1008]
push ecx
call fcn.004685e6
add esp, 0x14
call fcn.004040e0
mov dword [ebp - 0x1fc4], eax
mov dword [ebp - 0x1018], 0
lea edx, [ebp - 0x1008]
mov dword [ebp - 0x101c], edx
cmp dword [ebp - 0x101c], 0
jne 0x4573e9
mov dword [ebp - 0x3054], 0
jmp 0x45745f
mov eax, dword [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0x3fffffff
jle 0x457417
mov dword [ebp - 0x3058], 0
jmp 0x457453
mov eax, dword [ebp - 0x100c]
shl eax, 1
call fcn.0046dc70
mov dword [ebp - 0x305c], esp
mov ecx, dword [ebp - 0x1fc4]
push ecx
mov edx, dword [ebp - 0x100c]
shl edx, 1
push edx
mov eax, dword [ebp - 0x101c]
push eax
mov ecx, dword [ebp - 0x305c]
push ecx
call fcn.00423510
mov dword [ebp - 0x3058], eax
mov edx, dword [ebp - 0x3058]
mov dword [ebp - 0x3054], edx
mov eax, dword [ebp - 0x3054]
mov dword [ebp - 0x1010], eax
lea ecx, [ebp - 0x1008]
push ecx
call fcn.004687a8
add esp, 4
add eax, 1
mov dword [ebp - 0x1014], eax
lea edx, [ebp - 0x1018]
push edx
push 0
push 0x4a
mov eax, dword [0x4e9f18]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4ce630], 0
je 0x4575df
cmp dword [0x4e9f14], 0
jne 0x4574d5
push 0
push 0x4be460
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x4e9f14], eax
cmp dword [0x4e9f14], 0
jne 0x4574d5
mov dword [0x4e9f14], 0xffffffff
cmp dword [0x4e9f14], 0xffffffff
je 0x4575df
xor ecx, ecx
mov word [ebp - 0x20a8], cx
push 0xc6
push 0
lea edx, [ebp - 0x20a6]
push edx
call fcn.00468010
add esp, 0xc
lea eax, [ebp - 0x1fe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x64
lea ecx, [ebp - 0x20a8]
push ecx
push 0
lea edx, [ebp - 0x1fe0]
push edx
push inet_addr
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
xor eax, eax
mov word [ebp - 0x3048], ax
push 0xf9e
push 0
lea ecx, [ebp - 0x3046]
push ecx
call fcn.00468010
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [ebp - 0x1fd0], edx
mov eax, dword [ebp - 0x1fd0]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x7d0
lea edx, [ebp - 0x3048]
push edx
call fcn.0046d5d0
add esp, 0x10
mov dword [ebp - 0x1fd0], 0
lea eax, [ebp - 0x3048]
push eax
mov ecx, dword [0x4e9f1c]
push ecx
lea edx, [ebp - 0x20a8]
push edx
push 0x4be468
push 0x800
lea eax, [ebp - 0x1008]
push eax
call fcn.004685e6
add esp, 0x18
push 0x78
mov ecx, dword [0x4e9f14]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x1fcc], eax
lea edx, [ebp - 0x1008]
push edx
push 0
push 0x180
mov eax, dword [ebp - 0x1fcc]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4e9f10], 0
je 0x45767f
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push 0x4be480
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x304c], eax
cmp dword [ebp - 0x304c], 0xffffffff
je 0x45767f
push 2
push 0
push 0
mov ecx, dword [ebp - 0x304c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x3050]
push edx
lea eax, [ebp - 0x1008]
push eax
call fcn.004687a8
add esp, 4
push eax
lea ecx, [ebp - 0x1008]
push ecx
mov edx, dword [ebp - 0x304c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x3050]
push eax
push 2
push 0x4be498
mov ecx, dword [ebp - 0x304c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x304c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [ebp - 0x305c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret