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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa840
call fcn.1003e9a0
mov eax, dword [0x10067bf0]
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.1003e4c0
add esp, 0xc
mov byte [ebp - 0xa620], 0
push 0x51ff
push 0
lea ecx, [ebp - 0xa61f]
push ecx
call fcn.1003e4c0
add esp, 0xc
cmp dword [0x1011eafc], 0
je 0x1003b846
mov byte [ebp - 0xa830], 0
push 0x1ff
push 0
lea edx, [ebp - 0xa82f]
push edx
call fcn.1003e4c0
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 0x10060c7c
lea edx, [ebp - 0x210]
push edx
call fcn.1003e91e
add esp, 0xc
jmp 0x1003b85f
push 0x1011ef18
push str._sLog
lea eax, [ebp - 0x210]
push eax
call fcn.1003e91e
add esp, 0xc
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.10042e62
add esp, 8
test eax, eax
je 0x1003b883
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 8]
push eax
call fcn.1003b780
add esp, 4
lea ecx, [ebp - 8]
push ecx
call fcn.1003b760
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.1003e91e
add esp, 0xc
lea edx, [ebp - 0xa620]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.1003fd70
add esp, 8
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.10042e62
add esp, 8
test eax, eax
je 0x1003b8fe
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.1003e91e
add esp, 0xc
lea eax, [ebp - 0xa620]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.1003fd70
add esp, 8
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.10042e62
add esp, 8
test eax, eax
je 0x1003b959
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 [0x101468e0]
push eax
push 0x1011f518
push str._s__d__02d.txt
lea ecx, [ebp - 0xa620]
push ecx
call fcn.1003e91e
add esp, 0x14
lea edx, [ebp - 0xa620]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.1003fd70
add esp, 8
cmp dword [ebp + 8], 0x63
jne 0x1003b9b7
push 0x1011ef18
push str._sLogCutOK.txt
lea ecx, [ebp - 0x210]
push ecx
call fcn.1003e91e
add esp, 0xc
mov byte [ebp - 0x5420], 0
push 0x51ff
push 0
lea edx, [ebp - 0x541f]
push edx
call fcn.1003e4c0
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.10040e1a
add esp, 0xc
mov dword [ebp - 0x218], 0
cmp dword [ebp + 8], 0x63
jne 0x1003ba2b
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.1003e91e
add esp, 0x10
jmp 0x1003ba6f
lea eax, [ebp - 0xa620]
push eax
push 0x1011f518
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.1003e91e
add esp, 0x20
call fcn.1000fc80
mov dword [ebp - 0xa628], eax
lea edx, [ebp - 0x210]
mov dword [ebp - 0xa62c], edx
cmp dword [ebp - 0xa62c], 0
jne 0x1003ba9b
mov dword [ebp - 0xa838], 0
jmp 0x1003bb0f
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 0x1003bac9
mov dword [ebp - 0xa83c], 0
jmp 0x1003bb03
mov eax, dword [ebp - 0x214]
shl eax, 1
call fcn.100400a0
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.1000fc90
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 [0x1017fb68]
mov dword [ebp - 0xa624], eax
cmp dword [ebp - 0xa624], 0xffffffff
jne 0x1003bb62
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 0x1003bbc5
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.1003e420
add esp, 4
push eax
lea edx, [ebp - 0x5420]
push edx
mov eax, dword [ebp - 0xa624]
push eax
call dword [0x10176c38]
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.1003e4ab
mov esp, ebp
pop ebp
ret