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

Disassembly:
push 0xffffffffffffffff
push 0x10019eed
mov eax, dword fs:[0]
push eax
mov eax, 0x10d0
call fcn.10018f80
mov eax, dword [0x1002b1f0]
xor eax, esp
mov dword [esp + 0x10cc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1002b1f0]
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 edi, str.C:TSLOG_CONFIGTSLOG.ini
push edi
mov esi, ecx
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10008fc3
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 0x10008fbb
lea eax, [esp + 0x40]
push eax
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10008fae
lea eax, [esp + 0x40]
push eax
push ebp
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10008fa6
push 0
mov ecx, esi
call fcn.1000578f
xor eax, eax
jmp 0x1000982b
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor ebp, ebp
push ebp
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x10008fc5
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor ebp, ebp
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
cmp dword [esp + 0x54], ebp
jne 0x1000901e
push ebp
push ebp
push 4
push ebp
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000901e
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 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 edi
push 0x800
lea eax, [esp + 0xe8]
push eax
mov ebp, 0x1001e000
push ebp
push 0x1001dfec
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 0x100090be
lea eax, [esp + 0xe0]
push 0x1001dfe8
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x100090be
lea eax, [esp + 0xe0]
push 0x1001d640
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x100090b8
lea eax, [esp + 0xe0]
push 0x1001dfe4
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x100090c5
and dword [esi + 0x28], 0
jmp 0x100090c5
mov dword [esi + 0x28], 1
cmp dword [esp + 0x18], 0
je 0x100090eb
cmp dword [esi + 0x28], 0
mov eax, ebp
jne 0x100090d9
mov eax, 0x1001d640
push edi
push eax
push 0x1001dfec
push str.Output
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
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 0x10009160
lea eax, [esp + 0xe0]
push 0x1001dfe8
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x10009160
lea eax, [esp + 0xe0]
push 0x1001d640
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000915a
lea eax, [esp + 0xe0]
push 0x1001dfe4
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10009167
and dword [esi + 0x2c], 0
jmp 0x10009167
mov dword [esi + 0x2c], 1
cmp dword [esp + 0x18], 0
je 0x1000918b
cmp dword [esi + 0x2c], 0
jne 0x10009179
mov ebp, 0x1001d640
push edi
push ebp
push str.FileLog
push str.Output
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
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 0x100091cc
and dword [esi + 0x30], eax
jmp 0x10009260
lea eax, [esp + 0xe0]
push str.DEBUG
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x100091ea
mov dword [esi + 0x30], 1
jmp 0x10009260
lea eax, [esp + 0xe0]
push str.INFO
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10009208
mov dword [esi + 0x30], 2
jmp 0x10009260
lea eax, [esp + 0xe0]
push str.WARN
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10009226
mov dword [esi + 0x30], 3
jmp 0x10009260
lea eax, [esp + 0xe0]
push str.ERROR
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10009244
mov dword [esi + 0x30], 4
jmp 0x10009260
lea eax, [esp + 0xe0]
push str.FATAL
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10009260
mov dword [esi + 0x30], 5
cmp dword [esp + 0x18], 0
je 0x100092bb
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100092a8
cmp eax, 1
jne 0x1000927a
mov eax, str.DEBUG
jmp 0x100092ad
cmp eax, 2
jne 0x10009286
mov eax, str.INFO
jmp 0x100092ad
cmp eax, 3
jne 0x10009292
mov eax, str.WARN
jmp 0x100092ad
cmp eax, 4
jne 0x1000929e
mov eax, str.ERROR
jmp 0x100092ad
cmp eax, 5
mov eax, str.FATAL
je 0x100092ad
mov eax, str.TRACE
push edi
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, [esi + 0x34]
mov byte [esp + 0x10ec], 1
call fcn.1000185b
push edi
push 0x800
lea eax, [esp + 0xe8]
push eax
push 0x1001d610
push str.Include
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0xc8]
call dword [0x1001b238]
mov ebx, dword [sym.imp.MSVCR90.dll_wcstok]
push 0x1001df68
lea eax, [esp + 0xe4]
push eax
jmp 0x1000935e
push 0x1001d610
push dword [esp + 0x18]
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
lea ecx, [esi + 0x34]
test eax, eax
je 0x1000936c
push dword [esp + 0x14]
call fcn.100055b5
push 0x1001df68
push 0
call ebx
pop ecx
mov dword [esp + 0x18], eax
pop ecx
test eax, eax
jne 0x10009336
jmp 0x10009396
call fcn.1000185b
push dword [esp + 0x14]
lea ecx, [esi + 0x34]
call fcn.100055b5
cmp dword [esp + 0x18], 0
je 0x10009396
push edi
push 0x1001d610
push str.Include
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esi + 0x88]
call fcn.1000185b
push edi
push 0x800
lea eax, [esp + 0xe8]
push eax
push 0x1001d410
push 0x1001df58
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0xac]
call dword [0x1001b238]
lea eax, [esp + 0xe0]
push 0x1001df54
push eax
call ebx
pop ecx
pop ecx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10009408
cmp dword [esp + 0x18], eax
je 0x10009452
push edi
push 0x1001d410
push 0x1001df58
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x10009452
mov ebp, dword [esp + 0x14]
push 0x1001d610
push ebp
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000943d
push ebp
lea ecx, [esi + 0x88]
call fcn.100055b5
push 0x1001df68
push 0
call ebx
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
jne 0x1000940c
jmp 0x10009452
lea ebx, [esi + 0x88]
mov ecx, ebx
call fcn.1000185b
push ebp
mov ecx, ebx
call fcn.100055b5
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 edi
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.10001884
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_]
cmp dword [esp + 0x88], 0x10
mov ebp, dword [esp + 0x74]
jae 0x100094ac
lea ebp, [esp + 0x74]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x14], ebp
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, [esi + 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.1000196a
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_]
cmp dword [esp + 0xa4], 8
mov eax, dword [esp + 0x90]
jae 0x1000951c
lea eax, [esp + 0x90]
mov dword [esp + 0x1c], eax
xor eax, eax
cmp dword [esi + 0x2c], eax
je 0x100096e5
cmp dword [esp + 0x20], eax
je 0x10009539
cmp dword [esi + 0x23c], eax
jne 0x100095b5
push ebp
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 0x1000956c
push ebx
call sub.MSVCR90.dll_strlen
pop ecx
cmp eax, ebp
jb 0x1000957c
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 + esi + 0xf7], 0x5c
pop ecx
je 0x1000959d
push ebp
push 0x1001d398
push ebx
call dword [sym.imp.MSVCR90.dll_strncat]
add esp, 0xc
or dword [0x1002b66c], 0xffffffff
cmp dword [esp + 0x10f4], 0
jne 0x100095b5
mov ecx, esi
call fcn.10001baa
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0x5000
push str.MaxLogFileSize
mov ebp, 0x1001defc
push ebp
call ebx
mov dword [esi + 0xdc], eax
cmp eax, 1
jb 0x100095e0
cmp eax, 0x1f4000
jbe 0x100095fc
push edi
push str.20480
push str.MaxLogFileSize
push ebp
mov dword [esi + 0xdc], 0x5000
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
push 0x14
push str.MaxLogFileCnt
push ebp
call ebx
cmp eax, 1
mov dword [esi + 0xe0], eax
jl 0x10009619
cmp eax, 0x3e8
jle 0x10009635
push edi
push 0x1001decc
push str.MaxLogFileCnt
push ebp
mov dword [esi + 0xe0], 0x14
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
push 0xa
push str.MaxCountOfHistroyProcess
push ebp
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0xe4], eax
mov ebx, 0x1001de90
jl 0x10009655
cmp eax, 0x64
jle 0x1000966d
push edi
push ebx
push str.MaxCountOfHistroyProcess
push ebp
mov dword [esi + 0xe4], 0xa
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esp + 0x18], 0
je 0x10009703
push dword [esp + 0x14]
lea eax, [esi + 0xf8]
push eax
push str.LogFilePath
push str.FileLogOption
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esi + 0xdc], 0x5000
jne 0x100096b1
push edi
push str.20480
push str.MaxLogFileSize
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esi + 0xe0], 0x14
jne 0x100096cc
push edi
push 0x1001decc
push str.MaxLogFileCnt
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esi + 0xe4], 0xa
jne 0x10009703
push edi
push ebx
push str.MaxCountOfHistroyProcess
push ebp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x10009703
lea ebx, [esi + 0xe8]
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x10009703
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
and dword [esi + 0xf4], 0
xor ecx, ecx
cmp dword [esp + 0x10f4], ecx
jne 0x100097d7
mov eax, dword [esi + 0x30]
cmp eax, ecx
je 0x10009753
cmp eax, 1
jne 0x10009725
mov eax, str.DEBUG
jmp 0x10009758
cmp eax, 2
jne 0x10009731
mov eax, str.INFO
jmp 0x10009758
cmp eax, 3
jne 0x1000973d
mov eax, str.WARN
jmp 0x10009758
cmp eax, 4
jne 0x10009749
mov eax, str.ERROR
jmp 0x10009758
cmp eax, 5
mov eax, str.FATAL
je 0x10009758
mov eax, str.TRACE
mov ebp, 0x1001e000
cmp dword [esi + 0x2c], ecx
jne 0x10009767
mov ebp, 0x1001d640
mov ebx, 0x1001e000
cmp dword [esi + 0x28], ecx
jne 0x10009776
mov ebx, 0x1001d640
cmp dword [esp + 0xc0], 8
mov edx, dword [esp + 0xac]
jae 0x1000978e
lea edx, [esp + 0xac]
cmp dword [esp + 0xdc], 8
mov ecx, dword [esp + 0xc8]
jae 0x100097a6
lea ecx, [esp + 0xc8]
push dword [esi + 0xe4]
push dword [esi + 0xe0]
push dword [esi + 0xdc]
push dword [esp + 0x28]
push edx
push ecx
push eax
push ebp
push ebx
push edi
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 esi
call fcn.1000a259
add esp, 0x30
mov ecx, esi
call fcn.10008ac1
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.10018dd2
add esp, 0x10dc
ret 4