Function at 0x1001a870
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa840
call fcn.1001da70
mov eax, dword [0x1003e830]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x210], 0
push 0x1ff
push 0
lea eax, [ebp - 0x20f]
push eax
call fcn.1001d590
add esp, 0xc
mov byte [ebp - 0xa620], 0
push 0x51ff
push 0
lea ecx, [ebp - 0xa61f]
push ecx
call fcn.1001d590
add esp, 0xc
cmp dword [0x100ded84], 0
je 0x1001a916
mov byte [ebp - 0xa830], 0
push 0x1ff
push 0
lea edx, [ebp - 0xa82f]
push edx
call fcn.1001d590
add esp, 0xc
lea eax, [ebp - 0xa830]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0xa830]
push ecx
push 0x1003910c
lea edx, [ebp - 0x210]
push edx
call fcn.1001d9ee
add esp, 0xc
jmp 0x1001a92f
push 0x100df1a0
push str._sLog
lea eax, [ebp - 0x210]
push eax
call fcn.1001d9ee
add esp, 0xc
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.10021228
add esp, 8
test eax, eax
je 0x1001a953
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 8]
push eax
call fcn.1001a850
add esp, 4
lea ecx, [ebp - 8]
push ecx
call fcn.1001a830
add esp, 4
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d
lea ecx, [ebp - 0xa620]
push ecx
call fcn.1001d9ee
add esp, 0xc
lea edx, [ebp - 0xa620]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.1001e060
add esp, 8
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.10021228
add esp, 8
test eax, eax
je 0x1001a9ce
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x10]
add ecx, 1
push ecx
push str._02d
lea edx, [ebp - 0xa620]
push edx
call fcn.1001d9ee
add esp, 0xc
lea eax, [ebp - 0xa620]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.1001e060
add esp, 8
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.10021228
add esp, 8
test eax, eax
je 0x1001aa29
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [0x10106b68]
push eax
push 0x100df7a0
push str._s__d__02d.txt
lea ecx, [ebp - 0xa620]
push ecx
call fcn.1001d9ee
add esp, 0x14
lea edx, [ebp - 0xa620]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.1001e060
add esp, 8
cmp dword [ebp + 8], 0x63
jne 0x1001aa87
push 0x100df1a0
push str._sLogCutOK.txt
lea ecx, [ebp - 0x210]
push ecx
call fcn.1001d9ee
add esp, 0xc
mov byte [ebp - 0x5420], 0
push 0x51ff
push 0
lea edx, [ebp - 0x541f]
push edx
call fcn.1001d590
add esp, 0xc
lea eax, [ebp + 0x10]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xa620]
push eax
call fcn.100217b4
add esp, 0xc
mov dword [ebp - 0x218], 0
cmp dword [ebp + 8], 0x63
jne 0x1001aafb
lea ecx, [ebp - 0xa620]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._d__s_r_n
lea edx, [ebp - 0x5420]
push edx
call fcn.1001d9ee
add esp, 0x10
jmp 0x1001ab3f
lea eax, [ebp - 0xa620]
push eax
push 0x100df7a0
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._d__02d:_02d:_02d____s___s_r_n
lea ecx, [ebp - 0x5420]
push ecx
call fcn.1001d9ee
add esp, 0x20
call fcn.1000b7a0
mov dword [ebp - 0xa628], eax
lea edx, [ebp - 0x210]
mov dword [ebp - 0xa62c], edx
cmp dword [ebp - 0xa62c], 0
jne 0x1001ab6b
mov dword [ebp - 0xa838], 0
jmp 0x1001abdf
mov eax, dword [ebp - 0xa62c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0x3fffffff
jle 0x1001ab99
mov dword [ebp - 0xa83c], 0
jmp 0x1001abd3
mov eax, dword [ebp - 0x214]
shl eax, 1
call fcn.1001e390
mov dword [ebp - 0xa840], esp
mov ecx, dword [ebp - 0xa628]
push ecx
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0xa62c]
push eax
mov ecx, dword [ebp - 0xa840]
push ecx
call fcn.1000b7b0
mov dword [ebp - 0xa83c], eax
mov edx, dword [ebp - 0xa83c]
mov dword [ebp - 0xa838], edx
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0xa838]
push eax
call dword [0x1013e7c4]
mov dword [ebp - 0xa624], eax
cmp dword [ebp - 0xa624], 0xffffffff
jne 0x1001ac32
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa624], eax
cmp dword [ebp - 0xa624], 0xffffffff
je 0x1001ac95
push 2
push 0
push 0
mov edx, dword [ebp - 0xa624]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xa834]
push eax
lea ecx, [ebp - 0x5420]
push ecx
call fcn.1001d4f0
add esp, 4
push eax
lea edx, [ebp - 0x5420]
push edx
mov eax, dword [ebp - 0xa624]
push eax
call dword [0x10135894]
mov ecx, dword [ebp - 0xa624]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [ebp - 0xa624]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [ebp - 0xa840]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1001d57b
mov esp, ebp
pop ebp
ret