Function at 0x1001d270
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1012b87c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x340
mov eax, dword [0x10194180]
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
mov dword [esp + 0x348], eax
mov dword [esp + 0x28], esi
call fcn.1006e540
mov dword [esp + 0x354], 0
lea ebx, [esi + 8]
push 0
mov ecx, ebx
call fcn.10001520
mov byte [esp + 0x354], 1
lea ecx, [esi + 0xc]
push 0
call fcn.10001520
mov byte [esp + 0x354], 2
lea ecx, [esi + 0x10]
push 0
call fcn.10001520
mov byte [esp + 0x354], 3
xor eax, eax
mov byte [esp + 0x130], 0
mov ecx, 0x40
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0x40
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x238], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x239]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.10001520
mov byte [esp + 0x354], 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001d618
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1001d618
push eax
mov ecx, ebx
call fcn.100078e0
push ebx
lea eax, [esp + 0x18]
push str.GLOBALLOGMUTEXNAME_
push eax
call fcn.10008510
add esp, 0xc
mov byte [esp + 0x354], 5
push eax
lea ecx, [esp + 0x20]
call fcn.10007b60
mov byte [esp + 0x354], 6
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov byte [esp + 0x354], 5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1001d3e2
mov edi, dword [eax]
sub edi, 8
lea ecx, [edi + 4]
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001d3d5
push edi
call fcn.100569b3
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call fcn.101209d7
add esp, 4
mov byte [esp + 0x354], 4
mov edi, dword [esp + 0x14]
add edi, 0xfffffff8
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001d408
push edi
call fcn.100569b3
add esp, 4
mov ecx, esi
call fcn.1006e2f0
test al, al
jne 0x1001d43a
mov byte [esp + 0x354], 3
mov ebx, dword [esp + 0x10]
add ebx, 0xfffffff8
lea ecx, [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001d645
push ebx
jmp 0x1001d63d
push 0x104
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1001d46e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x354], 3
lea ecx, [esp + 0x10]
call fcn.10001c80
jmp 0x1001d645
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x14]
call fcn.100078e0
push str.LogConfig.ini
lea ecx, [esp + 0x14]
call fcn.10008230
mov edi, dword [esp + 0x10]
mov eax, dword [ebx]
push edi
push 0
push str.StartLog
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x1001d4c3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov byte [esp + 0x354], 3
lea ecx, [esp + 0x10]
call fcn.10001c80
jmp 0x1001d645
mov eax, dword [ebx]
push edi
push 7
push str.LoopDay
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0xffffffffffffffff
mov dword [esi + 0x14], eax
mov eax, dword [ebx]
push str.LogPathEx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [ebx]
push edi
push 0x104
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
push eax
push 0x101360cc
push str.LogPath
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x1001d54e
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001d520
sub eax, edx
mov dword [esp + 0x14], eax
jne 0x1001d53f
lea ecx, [esp + 0x28]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 0xc]
call fcn.100078e0
jmp 0x1001d57f
push 1
push eax
lea eax, [esp + 0x240]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x23c]
push edx
lea eax, [esi + 0xc]
push 0x1013873c
push eax
call fcn.10008370
add esp, 0x10
push 1
lea eax, [esp + 0x18]
lea edi, [esi + 0xc]
push eax
mov ecx, edi
call fcn.1001d210
mov byte [esp + 0x354], 7
push 0x101366a0
mov ecx, eax
call fcn.1001d0b0
mov bl, al
mov byte [esp + 0x354], 4
lea ecx, [esp + 0x14]
call fcn.10001c80
test bl, bl
je 0x1001d5c7
push 0x101366a0
mov ecx, edi
call fcn.10008230
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.10008230
push str._0.ini
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.100082c0
mov byte [esp + 0x354], 8
push eax
lea ecx, [esi + 0x10]
call fcn.10007e70
mov byte [esp + 0x354], 4
lea ecx, [esp + 0x14]
call fcn.10001c80
mov byte [esp + 0x354], 3
lea ecx, [esp + 0x10]
call fcn.10001c80
jmp 0x1001d645
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [esp + 0x354], 3
mov edi, dword [esp + 0x10]
add edi, 0xfffffff8
lea ecx, [edi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001d645
push edi
call fcn.100569b3
add esp, 4
mov dword [esp + 0x354], 0xffffffff
mov ecx, dword [esp + 0x34c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x344]
mov eax, esi
call fcn.100571c6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8