Function at 0x10007e00
Capabilities:
Clear file content
Get file size
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x64], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x10007e31
mov eax, 0xb806009
jmp 0x1000832b
mov eax, 0x1001a018
call fcn.1000fac0
cmp dword [0x10019e00], 0
jne 0x10007ea2
push 0x20000
push 0
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
and ecx, 0xfff
je 0x10007e6b
jmp 0x100082c5
mov dword [0x10019e00], 1
push str.Init_Log_in_WriteLog
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 0x1c]
call eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
and ecx, 0xfff
je 0x10007ea2
jmp 0x100082c5
cmp dword [ebp + 0x10], 0
jne 0x10007eb4
mov dword [ebp - 8], 0xc906009
jmp 0x100082c5
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
movzx edx, word [ecx]
cmp edx, 0xa
jne 0x10007ed8
mov eax, dword [ebp - 0x38]
add eax, 2
mov dword [ebp - 0x38], eax
cmp dword [0x100192f0], 0xffffffff
je 0x10007eec
mov ecx, dword [0x100192f0]
mov dword [ebp - 0xc], ecx
jmp 0x10007f37
push 0x80
push 0x10019bf8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push 0x10019bf8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10007f2e
mov dword [ebp - 8], 0xdf06105
jmp 0x100082c5
mov edx, dword [ebp - 0xc]
mov dword [0x100192f0], edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10007f5c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x20], 0
jne 0x10007f86
cmp dword [ebp - 0x1c], 0
jne 0x10007f86
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.10008f90
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xfff
je 0x10007f86
jmp 0x100082c5
mov dword [ebp - 0x4c], 0
cmp dword [0x100192ec], 0
je 0x10007fb0
cmp dword [ebp - 0x1c], 0
jl 0x10007fae
jg 0x10007fa7
cmp dword [ebp - 0x20], 0x1400000
jbe 0x10007fae
mov dword [ebp - 0x4c], 1
jmp 0x10007fc8
cmp dword [ebp - 0x1c], 0
jl 0x10007fc8
jg 0x10007fc1
cmp dword [ebp - 0x20], 0x2800000
jbe 0x10007fc8
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x4c], 0
je 0x1000801f
push 0
push 0
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x1000801f
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10008010
jmp 0x1000801f
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.10008f90
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xfff
je 0x1000802e
jmp 0x100082c5
push 2
push 0
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10008059
mov dword [ebp - 8], 0x11b06109
jmp 0x100082c5
cmp dword [0x100192ec], 0
je 0x100080d9
mov dword [0x100192ec], 0
push 0x10014740
push 0x400
mov ecx, dword [ebp - 0x64]
add ecx, 4
push ecx
call sub.MSVCR90.dll_wcscpy_s
add esp, 0xc
push 0x104
mov edx, dword [ebp - 0x64]
add edx, 8
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x10014748
push 0x400
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
call sub.MSVCR90.dll_wcscat_s
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x64]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.10007c80
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xfff
je 0x100080d9
jmp 0x100082c5
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
add eax, 2
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x68]
mov dx, word [ecx]
mov word [ebp - 0x6e], dx
add dword [ebp - 0x68], 2
cmp word [ebp - 0x6e], 0
jne 0x1000811c
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x6c]
sar eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
add edx, 0x30
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x50], 0
cmp dword [ebp - 0x34], 0x400
jbe 0x1000818b
xor ecx, ecx
mov eax, dword [ebp - 0x34]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001133b
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x50], ecx
jmp 0x10008194
mov edx, dword [ebp - 0x64]
add edx, 4
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
movzx eax, word [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x26]
push ecx
movzx edx, word [ebp - 0x28]
push edx
movzx eax, word [ebp - 0x2a]
push eax
movzx ecx, word [ebp - 0x2e]
push ecx
movzx edx, word [ebp - 0x30]
push edx
push str._.4d__.2d__.2d__.2d:_.2d:_.2d__M:_.2x_T_P:_d__d___s
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call sub.MSVCR90.dll_swprintf_s
add esp, 0x34
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
add eax, 2
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x78]
mov dx, word [ecx]
mov word [ebp - 0x7e], dx
add dword [ebp - 0x78], 2
cmp word [ebp - 0x7e], 0
jne 0x100081e9
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x7c]
sar eax, 1
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax + edx*2 - 2]
cmp ecx, 0xa
jne 0x1000825c
mov edx, 0xd
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x50]
mov word [ecx + eax*2 - 2], dx
mov edx, 0xa
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x50]
mov word [ecx + eax*2], dx
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x50]
mov word [ecx + eax*2 + 2], dx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
jmp 0x10008291
mov eax, 0xd
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x50]
mov word [edx + ecx*2], ax
mov eax, 0xa
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x50]
mov word [edx + ecx*2 + 2], ax
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x50]
mov word [edx + ecx*2 + 4], ax
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
shl ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.10007c80
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
and edx, 0xfff
je 0x100082bd
jmp 0x100082c5
xor eax, eax
jne 0x10007e3b
cmp dword [ebp - 0xc], 0xffffffff
je 0x10008306
cmp dword [ebp - 8], 0
je 0x10008306
mov ecx, dword [ebp - 8]
push ecx
push str.Log_Error:_0x_x_r_n
push 0x400
mov edx, dword [ebp - 0x64]
add edx, 4
push edx
call sub.MSVCR90.dll_swprintf_s
add esp, 0x10
push 0
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.10007c80
mov dword [ebp - 8], eax
mov eax, 0x1001a018
call fcn.1000fad0
cmp dword [ebp - 4], 0
je 0x10008328
mov edx, dword [ebp - 4]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10