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

Disassembly:
push ebp
sub esp, 0x600
lea ebp, [esp - 4]
mov eax, dword [0x10084adc]
xor eax, ebp
mov dword [ebp + 0x600], eax
push 0x14
mov eax, 0x1005f387
call fcn.100473a2
cmp byte [0x101580eb], 0
jne 0x1004164e
mov esi, 0x1ff
push esi
xor edi, edi
lea eax, [ebp + 0x401]
push edi
push eax
mov byte [ebp + 0x400], 0
call fcn.10045030
push esi
lea eax, [ebp + 1]
push edi
push eax
mov byte [ebp], 0
call fcn.10045030
add esp, 0x18
cmp dword [0x10154a10], edi
je 0x10041381
push esi
lea eax, [ebp + 0x201]
push edi
push eax
mov byte [ebp + 0x200], 0
call fcn.10045030
add esp, 0xc
lea eax, [ebp + 0x200]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x200]
push eax
push str._sTC_LOG
jmp 0x1004138b
push 0x10154e28
push str._sLog
lea eax, [ebp + 0x400]
push eax
call fcn.10045378
add esp, 0xc
lea eax, [ebp + 0x400]
push edi
push eax
call fcn.100484ec
pop ecx
pop ecx
test eax, eax
je 0x100413bb
push edi
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x1c]
push eax
call fcn.100457db
lea eax, [ebp - 0x1c]
push eax
call fcn.100457b4
mov ebx, eax
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp]
push str._04d
push eax
call fcn.10045378
lea eax, [ebp]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100413ee
lea edi, [ebp + 0x400]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100413fe
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x400]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.100484ec
pop ecx
pop ecx
test eax, eax
je 0x10041439
push 0
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebx + 0x10]
inc eax
push eax
lea eax, [ebp]
push str._02d
push eax
call fcn.10045378
lea eax, [ebp]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10041454
lea edi, [ebp + 0x400]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10041464
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x400]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.100484ec
pop ecx
pop ecx
test eax, eax
je 0x1004149f
push 0
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebx + 0xc]
lea eax, [ebp]
push dword [0x10185a54]
push 0x10155a28
push str._s__d__02d.txt
push eax
call fcn.10045378
lea eax, [ebp]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100414c3
lea edi, [ebp + 0x400]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100414d3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp + 0x60c], 0x63
rep movsb byte es:[edi], byte [esi]
jne 0x1004150f
push 0x10154e28
lea eax, [ebp + 0x400]
push str._sLogSAL_LOG.txt
push eax
call fcn.10045378
add esp, 0xc
jmp 0x10041528
cmp dword [ebp + 0x60c], 1
jne 0x10041528
mov esi, str.c:_report.txt
lea edi, [ebp + 0x400]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp + 0x614]
push eax
push dword [ebp + 0x610]
call fcn.1004813c
add eax, 0x1e
push eax
call fcn.10045413
add esp, 0xc
push dword [ebx]
mov esi, eax
push dword [ebx + 4]
mov dword [ebp - 0x14], esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._n__08x__02d:_02d:_02d_
push esi
call fcn.10045378
lea eax, [ebp + 0x614]
push eax
push dword [ebp + 0x610]
add esi, 0x14
push esi
call fcn.100480cb
add esp, 0x24
lea eax, [ebp + 0x300]
mov dword [ebp + 0x2fc], eax
push 3
lea eax, [ebp + 0x400]
push eax
lea ecx, [ebp + 0x2fc]
call fcn.1000cc50
xor edi, edi
push edi
mov ebx, 0x80
push ebx
push 4
push edi
push 3
mov esi, 0x40000000
push esi
push dword [ebp + 0x2fc]
mov dword [ebp - 4], edi
call dword [0x101bf550]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x300]
cmp dword [ebp + 0x2fc], eax
je 0x100415e2
push dword [ebp + 0x2fc]
call fcn.10046e73
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10041605
push edi
push ebx
push 4
push edi
push 3
push esi
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x10041645
push 2
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10041618
push edi
sub eax, ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [0x101b65f8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.1004536d
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x600]
xor ecx, ebp
call fcn.1004501f
add ebp, 0x604
leave
ret