Function at 0x49d660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abcf2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1ac]
add eax, 0x18
push eax
lea ecx, [ebp - 0x1c0]
call fcn.004a2250
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1ac]
call sym.Install_silent.exe_private:_bool___thiscall_CNsLog::isLog_void_
movzx ecx, al
test ecx, ecx
jne 0x49d6e6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c0]
call fcn.004a2280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00409220
jmp 0x49d8c3
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x10
call fcn.00417460
movzx edx, al
test edx, edx
je 0x49d706
mov ecx, dword [ebp - 0x1ac]
call sym.Install_silent.exe_private:_bool___thiscall_CNsLog::GetDefLogPath_void_
push 0x4c9228
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x10
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
call fcn.0045f83a
add esp, 8
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
je 0x49d8a5
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp + 0x24]
push ecx
lea ecx, [ebp - 0x1a8]
call fcn.00409d00
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c8]
call fcn.00406ec0
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00405080
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1a8]
call fcn.00406ed0
push 0xfde9
lea ecx, [ebp - 0x1bc]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
lea ecx, [ebp - 0xa4]
call fcn.00421370
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1d0], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1d0]
call fcn.00406ec0
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00406de0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa4]
call fcn.00406ed0
lea ecx, [ebp - 0x1b0]
call fcn.004210e0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1b8]
push ecx
mov edx, dword [ebp + 0x20]
push edx
lea ecx, [ebp + 8]
call fcn.00409160
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx ecx, word [ebp - 0x16]
push ecx
movzx edx, word [ebp - 0x18]
push edx
movzx eax, word [ebp - 0x1a]
push eax
movzx ecx, word [ebp - 0x1e]
push ecx
movzx edx, word [ebp - 0x20]
push edx
push 0x4c9230
lea eax, [ebp - 0x1b0]
push eax
call fcn.00421100
add esp, 0x2c
mov ecx, dword [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x1b0]
call fcn.00406ec0
push eax
call fcn.0045cd90
add esp, 4
push eax
push 1
lea ecx, [ebp - 0x1b0]
call fcn.00406ec0
push eax
call fcn.0045fdef
add esp, 0x10
mov edx, dword [ebp - 0x1b4]
push edx
call fcn.0045febd
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1b0]
call fcn.00406dc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1b8]
call fcn.00406dc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1bc]
call fcn.00405060
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c0]
call fcn.004a2280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00409220
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 0x20