Function at 0x41031e
Capabilities:
Copy file
Move file
Read .ini file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4308c3
mov eax, dword fs:[0]
push eax
mov eax, 0x10d0
call fcn.00425ec0
mov eax, dword [0x4490e8]
xor eax, esp
mov dword [esp + 0x10cc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4490e8]
xor eax, esp
push eax
lea eax, [esp + 0x10e4]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.MSVCR90.dll__wstat64i32]
lea eax, [esp + 0x40]
push eax
mov esi, str.C:TSLOG_CONFIGTSLOG.ini
push esi
mov edi, ecx
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4103d4
lea eax, [esp + 0x40]
push eax
mov ebp, str.C:TSLOG_CONFIGTSLOG.txt
push ebp
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4103cc
lea eax, [esp + 0x40]
push eax
push esi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4103bf
lea eax, [esp + 0x40]
push eax
push ebp
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4103b7
push 0
mov ecx, edi
call fcn.0040e995
xor eax, eax
jmp 0x410c1e
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor ebp, ebp
push ebp
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4103d6
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor ebp, ebp
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x54], ebp
jne 0x41042f
push ebp
push ebp
push 4
push ebp
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41042f
push ebp
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
push eax
mov ebp, str.__Output__r_n_DebugView__________________ON______ON
push ebp
call sub.MSVCR90.dll_strlen
pop ecx
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], 1
xor eax, eax
push 0xffe
push eax
mov word [esp + 0xe8], ax
lea eax, [esp + 0xea]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
push 0x800
lea eax, [esp + 0xe8]
push eax
mov ebp, 0x435a50
push ebp
push 0x435a3c
push str.Output
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [sym.imp.MSVCR90.dll__wcsicmp]
lea eax, [esp + 0xe0]
push ebp
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4104cf
lea eax, [esp + 0xe0]
push 0x435a38
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4104cf
lea eax, [esp + 0xe0]
push 0x4352b0
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4104c9
lea eax, [esp + 0xe0]
push 0x435a34
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x4104d6
and dword [edi + 0x28], 0
jmp 0x4104d6
mov dword [edi + 0x28], 1
cmp dword [esp + 0x18], 0
je 0x4104fc
cmp dword [edi + 0x28], 0
mov eax, ebp
jne 0x4104ea
mov eax, 0x4352b0
push esi
push eax
push 0x435a3c
push str.Output
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
push 0x800
lea eax, [esp + 0xe8]
push eax
push ebp
push str.FileLog
push str.Output
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xe0]
push ebp
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x410571
lea eax, [esp + 0xe0]
push 0x435a38
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x410571
lea eax, [esp + 0xe0]
push 0x4352b0
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x41056b
lea eax, [esp + 0xe0]
push 0x435a34
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x410578
and dword [edi + 0x2c], 0
jmp 0x410578
mov dword [edi + 0x2c], 1
cmp dword [esp + 0x18], 0
je 0x41059c
cmp dword [edi + 0x2c], 0
jne 0x41058a
mov ebp, 0x4352b0
push esi
push ebp
push str.FileLog
push str.Output
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
push 0x800
lea eax, [esp + 0xe8]
push eax
push str.TRACE
push str.Level
mov ebp, str.Common
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xe0]
push str.TRACE
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x4105dd
and dword [edi + 0x30], eax
jmp 0x410671
lea eax, [esp + 0xe0]
push str.DEBUG
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x4105fb
mov dword [edi + 0x30], 1
jmp 0x410671
lea eax, [esp + 0xe0]
push str.INFO
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x410619
mov dword [edi + 0x30], 2
jmp 0x410671
lea eax, [esp + 0xe0]
push str.WARN
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x410637
mov dword [edi + 0x30], 3
jmp 0x410671
lea eax, [esp + 0xe0]
push str.ERROR
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x410655
mov dword [edi + 0x30], 4
jmp 0x410671
lea eax, [esp + 0xe0]
push str.FATAL
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x410671
mov dword [edi + 0x30], 5
cmp dword [esp + 0x18], 0
je 0x4106cc
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4106b9
cmp eax, 1
jne 0x41068b
mov eax, str.DEBUG
jmp 0x4106be
cmp eax, 2
jne 0x410697
mov eax, str.INFO
jmp 0x4106be
cmp eax, 3
jne 0x4106a3
mov eax, str.WARN
jmp 0x4106be
cmp eax, 4
jne 0x4106af
mov eax, str.ERROR
jmp 0x4106be
cmp eax, 5
mov eax, str.FATAL
je 0x4106be
mov eax, str.TRACE
push esi
push eax
push str.Level
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0xc4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [esp + 0x10ec], 0
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [edi + 0x34]
mov byte [esp + 0x10ec], 1
call fcn.0040d806
push esi
push 0x800
lea eax, [esp + 0xe8]
push eax
push 0x435280
push str.Include
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0xc8]
call dword [0x434304]
mov ebx, dword [sym.imp.MSVCR90.dll_wcstok]
push 0x4359b8
lea eax, [esp + 0xe4]
push eax
jmp 0x41076f
push 0x435280
push dword [esp + 0x18]
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
lea ecx, [edi + 0x34]
test eax, eax
je 0x41077d
push dword [esp + 0x14]
call fcn.0040e7c4
push 0x4359b8
push 0
call ebx
pop ecx
mov dword [esp + 0x18], eax
pop ecx
test eax, eax
jne 0x410747
jmp 0x4107a7
call fcn.0040d806
push dword [esp + 0x14]
lea ecx, [edi + 0x34]
call fcn.0040e7c4
cmp dword [esp + 0x18], 0
je 0x4107a7
push esi
push 0x435280
push str.Include
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [edi + 0x88]
call fcn.0040d806
push esi
push 0x800
lea eax, [esp + 0xe8]
push eax
push 0x4359b4
push 0x4359a4
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0xac]
call dword [0x434304]
lea eax, [esp + 0xe0]
push 0x4359a0
push eax
call ebx
pop ecx
pop ecx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x410819
cmp dword [esp + 0x18], eax
je 0x410863
push esi
push 0x4359b4
push 0x4359a4
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x410863
mov ebp, dword [esp + 0x14]
push 0x435280
push ebp
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41084e
push ebp
lea ecx, [edi + 0x88]
call fcn.0040e7c4
push 0x4359b8
push 0
call ebx
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
jne 0x41081d
jmp 0x410863
lea ebx, [edi + 0x88]
mov ecx, ebx
call fcn.0040d806
push ebp
mov ecx, ebx
call fcn.0040e7c4
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x10f0], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x10f4], 3
call fcn.0040d82f
pop ecx
pop ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x10ec], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ebx, [edi + 0xf8]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x10f0], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x10f4], 5
call fcn.0040d90a
pop ecx
pop ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x10ec], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
xor ebp, ebp
mov dword [esp + 0x20], eax
cmp dword [edi + 0x2c], ebp
je 0x410ae6
cmp dword [esp + 0x1c], ebp
je 0x410937
cmp dword [edi + 0x23c], ebp
jne 0x4109b6
push dword [esp + 0x14]
mov ebp, 0x104
push ebp
push ebx
push str.C:TSLOG_
push str.LogFilePath
push str.FileLogOption
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
call sub.MSVCR90.dll_strlen
pop ecx
test eax, eax
je 0x41096d
push ebx
call sub.MSVCR90.dll_strlen
pop ecx
cmp eax, ebp
jb 0x41097d
push ebp
push str.C:TSLOG_
push ebx
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
push ebx
call sub.MSVCR90.dll_strlen
cmp byte [eax + edi + 0xf7], 0x5c
pop ecx
je 0x41099e
push ebp
push 0x435980
push ebx
call dword [sym.imp.MSVCR90.dll_strncat]
add esp, 0xc
or dword [0x449910], 0xffffffff
cmp dword [esp + 0x10f4], 0
jne 0x4109b6
mov ecx, edi
call fcn.0040db3c
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x5000
push str.MaxLogFileSize
mov ebp, 0x435944
push ebp
call ebx
mov dword [edi + 0xdc], eax
cmp eax, 1
jb 0x4109e1
cmp eax, 0x1f4000
jbe 0x4109fd
push esi
push str.20480
push str.MaxLogFileSize
push ebp
mov dword [edi + 0xdc], 0x5000
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
push 0x14
push str.MaxLogFileCnt
push ebp
call ebx
cmp eax, 1
mov dword [edi + 0xe0], eax
jl 0x410a1a
cmp eax, 0x3e8
jle 0x410a36
push esi
push 0x435914
push str.MaxLogFileCnt
push ebp
mov dword [edi + 0xe0], 0x14
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
push 0xa
push str.MaxCountOfHistroyProcess
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [edi + 0xe4], eax
mov ebx, 0x4358d8
jl 0x410a56
cmp eax, 0x64
jle 0x410a6e
push esi
push ebx
push str.MaxCountOfHistroyProcess
push ebp
mov dword [edi + 0xe4], 0xa
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esp + 0x18], 0
je 0x410b03
push dword [esp + 0x14]
lea eax, [edi + 0xf8]
push eax
push str.LogFilePath
push str.FileLogOption
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [edi + 0xdc], 0x5000
jne 0x410ab2
push esi
push str.20480
push str.MaxLogFileSize
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [edi + 0xe0], 0x14
jne 0x410acd
push esi
push 0x435914
push str.MaxLogFileCnt
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [edi + 0xe4], 0xa
jne 0x410b03
push esi
push ebx
push str.MaxCountOfHistroyProcess
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x410b03
lea ebx, [edi + 0xe8]
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x410b03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov dword [edi + 0xf4], ebp
xor ecx, ecx
cmp dword [esp + 0x10f4], ecx
jne 0x410bca
mov eax, dword [edi + 0x30]
cmp eax, ecx
je 0x410b53
cmp eax, 1
jne 0x410b25
mov ebx, str.DEBUG
jmp 0x410b58
cmp eax, 2
jne 0x410b31
mov ebx, str.INFO
jmp 0x410b58
cmp eax, 3
jne 0x410b3d
mov ebx, str.WARN
jmp 0x410b58
cmp eax, 4
jne 0x410b49
mov ebx, str.ERROR
jmp 0x410b58
mov ebx, str.FATAL
cmp eax, 5
je 0x410b58
mov ebx, str.TRACE
mov dword [esp + 0x14], 0x435a50
cmp dword [edi + 0x2c], ecx
jne 0x410b6d
mov dword [esp + 0x14], 0x4352b0
mov ebp, 0x435a50
cmp dword [edi + 0x28], ecx
jne 0x410b7c
mov ebp, 0x4352b0
push dword [edi + 0xe4]
lea ecx, [esp + 0xac]
push dword [edi + 0xe0]
push dword [edi + 0xdc]
push dword [esp + 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [esp + 0xd8]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push ebx
push dword [esp + 0x30]
push ebp
push esi
push str.TSLog_Config_File_:__s_:__r_n00000000_t00:00:00.000_t_0000___Output__r_n00000000_t00:00:00.000_t_0000__DebugView_s_r_n00000000_t00:00:00.000_t_0000__FileLog_s_r_n00000000_t00:00:00.000_t_0000___Common__r_n00000000_t00:00:00.000_t_0000__Level_s_r_n00000000_t00:00:00.000_t_0000__Include_s_r_n00000000_t00:00:00.000_t_0000__Exclude_s_r_n00000000_t00:00:00.000_t_0000___FileLogOption__r_n00000000_t00:00:00.000_t_0000__LogFilePath_s_r_n00000000_t00:00:00.000_t_0000__MaxLogFileSize_d_r_n00000000_t00:00:00.000_t_0000__MaxLogFileCnt_d_r_n00000000_t00:00:00.000_t_0000__MaxCountOfHistroyProcess_d_r_n
push edi
call fcn.0041164c
add esp, 0x30
mov ecx, edi
call fcn.0040ff47
lea ecx, [esp + 0x8c]
mov byte [esp + 0x10ec], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x10ec], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa8]
mov byte [esp + 0x10ec], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [esp + 0x10ec], 0xffffffff
lea ecx, [esp + 0xc4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x10e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10cc]
xor ecx, esp
call fcn.00425cba
add esp, 0x10dc
ret 4