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

Disassembly:
push ebp
lea ebp, [esp - 0xa804]
mov eax, 0xa804
call fcn.10040c40
push 0xffffffffffffffff
push 0x1005aba2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10074bac]
xor eax, ebp
mov dword [ebp + 0xa800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0x1ff
xor ebx, ebx
push esi
lea eax, [ebp + 0xa601]
push ebx
push eax
mov byte [ebp + 0xa600], bl
call fcn.10040850
push 0x51ff
lea eax, [ebp + 0x5201]
push ebx
push eax
mov byte [ebp + 0x5200], bl
call fcn.10040850
add esp, 0x18
cmp dword [0x10141c2c], ebx
je 0x1003e09f
push esi
lea eax, [ebp + 0xa401]
push ebx
push eax
mov byte [ebp + 0xa400], bl
call fcn.10040850
add esp, 0xc
lea eax, [ebp + 0xa400]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0xa400]
push eax
push str._sTC_LOG
jmp 0x1003e0a9
push 0x10142048
push str._sLog
lea eax, [ebp + 0xa600]
push eax
call fcn.10040b98
add esp, 0xc
lea eax, [ebp + 0xa600]
push ebx
push eax
call fcn.10043bc5
pop ecx
pop ecx
test eax, eax
je 0x1003e0d9
push ebx
lea eax, [ebp + 0xa600]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x1c]
push eax
call fcn.10040fd5
lea eax, [ebp - 0x1c]
push eax
call fcn.10040fae
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp + 0x5200]
push str._04d
push eax
call fcn.10040b98
lea eax, [ebp + 0x5200]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003e113
lea edi, [ebp + 0xa600]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1003e123
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0xa600]
and ecx, 3
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10043bc5
pop ecx
pop ecx
test eax, eax
je 0x1003e15c
push ebx
lea eax, [ebp + 0xa600]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
inc eax
push eax
lea eax, [ebp + 0x5200]
push str._02d
push eax
call fcn.10040b98
lea eax, [ebp + 0x5200]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003e180
lea edi, [ebp + 0xa600]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1003e190
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0xa600]
and ecx, 3
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10043bc5
pop ecx
pop ecx
test eax, eax
je 0x1003e1c9
push ebx
lea eax, [ebp + 0xa600]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x10]
push dword [eax + 0xc]
lea eax, [ebp + 0x5200]
push dword [0x1016e468]
push 0x10142848
push str._s__d__02d.txt
push eax
call fcn.10040b98
lea eax, [ebp + 0x5200]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003e1f6
lea edi, [ebp + 0xa600]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1003e206
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 + 0xa80c], 0x63
rep movsb byte es:[edi], byte [esi]
jne 0x1003e240
push 0x10142048
lea eax, [ebp + 0xa600]
push str._sLogSAL_LOG.txt
push eax
call fcn.10040b98
add esp, 0xc
push 0x51ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.10040850
lea eax, [ebp + 0xa814]
push eax
push dword [ebp + 0xa810]
lea eax, [ebp + 0x5200]
push eax
call fcn.100435eb
add esp, 0x18
lea eax, [ebp + 0x5200]
push eax
mov eax, dword [ebp - 0x10]
push 0x10142848
push dword [eax]
push dword [eax + 4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp]
push str._d__02d:_02d:_02d____s___s_r_n
push eax
call fcn.10040b98
add esp, 0x20
lea eax, [ebp + 0xa500]
mov dword [ebp + 0xa4fc], eax
push 3
lea eax, [ebp + 0xa600]
push eax
lea ecx, [ebp + 0xa4fc]
call fcn.1000c23e
push ebx
mov edi, 0x80
push edi
push 4
push ebx
push 3
mov esi, 0x40000000
push esi
push dword [ebp + 0xa4fc]
mov dword [ebp - 4], ebx
call dword [0x101a7f1c]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xa500]
cmp dword [ebp + 0xa4fc], eax
je 0x1003e2ff
push dword [ebp + 0xa4fc]
call fcn.100425b3
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1003e322
push ebx
push edi
push 4
push ebx
push 3
push esi
lea eax, [ebp + 0xa600]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x1003e363
push 2
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003e335
push ebx
lea ecx, [ebp - 0x14]
push ecx
sub eax, esi
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [0x1019efd0]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa800]
xor ecx, ebp
call fcn.1004083f
add ebp, 0xa804
leave
ret