Function at 0x40fad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5074f7
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x52f8b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x2c4], esi
call fcn.0041f040
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push 2
push eax
mov dword [ebp - 0x220], 0
call fcn.00440a40
push 0x5277f8
lea eax, [ebp - 0x220]
push str.qqpytask._s.log
push eax
mov dword [ebp - 4], 0
call fcn.00404830
add esp, 0x14
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
je 0x40fdd8
lea ecx, [esi + 0x40]
push ecx
call fcn.0041e5fa
lea ecx, [ebp - 0x2bc]
mov esi, eax
call fcn.004056b0
push 1
push 2
lea ecx, [ebp - 0x2bc]
call fcn.0040bc80
mov byte [ebp - 4], 1
test esi, esi
je 0x40fc02
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x2cc], 0x527834
mov eax, 0x527834
mov edi, edi
add eax, 2
cmp word [eax], 0
jne 0x40fbe0
lea edx, [ebp - 0x2d0]
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x2c8], eax
call fcn.0040ffb0
jmp 0x40fc16
lea eax, [ebp - 0x2bc]
push str.invalid_time
push eax
call fcn.0040c860
add esp, 8
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x2f4]
push eax
add ecx, 0x48
mov byte [ebp - 4], 2
call fcn.0040fe90
mov esi, eax
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 3
call fcn.0040fe90
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 8
jb 0x40fc6b
mov esi, dword [esi]
mov eax, dword [ebp - 0x2c4]
add eax, 0x24
cmp dword [eax + 0x14], 8
jb 0x40fc7c
mov eax, dword [eax]
cmp dword [ecx + 0x14], 8
jb 0x40fc84
mov ecx, dword [ecx]
push esi
push eax
push ecx
lea eax, [ebp - 0x2c0]
push str._Log_begin__nTime:__s_nSeverity:__s_nMessage:__s_n_Log_end__n
push eax
call fcn.00401d50
add esp, 0x14
cmp dword [ebp - 0x2c8], 8
jb 0x40fcb2
push dword [ebp - 0x2dc]
call fcn.0041a777
add esp, 4
xor eax, eax
cmp dword [ebp - 0x2e0], 8
mov dword [ebp - 0x2c8], 7
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2dc], ax
jb 0x40fce6
push dword [ebp - 0x2f4]
call fcn.0041a777
add esp, 4
xor eax, eax
push 2
push eax
push eax
push edi
mov dword [ebp - 0x2e0], 7
mov dword [ebp - 0x2e4], 0
mov word [ebp - 0x2f4], ax
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp - 0x2c0]
push esi
call fcn.0040fa60
mov eax, dword [esi - 0xc]
add esp, 4
lea ecx, [ebp - 0x224]
push 0
push ecx
add eax, eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x40fd45
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fd62
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2c0], eax
lea ecx, [ebp - 0x2b8]
call fcn.0040a7b0
mov eax, dword [ebp - 0x2bc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2c0], eax
lea eax, [ebp - 0x26c]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00414f0e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40fdfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041a77c
mov esp, ebp
pop ebp
ret 4