Function at 0x11f307e0
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11fc6230
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x11f30ab1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x11f30ab1
mov eax, dword [0x11fd6250]
push ebx
push ebp
push edi
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.11e7eae0
mov al, byte [esp + 0x40]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
mov byte [esp + 0x2c], 1
mov ebx, esi
je 0x11f309db
push 0x3a
lea ecx, [esp + 0x14]
call fcn.11e80380
cmp eax, 1
jne 0x11f309db
lea ecx, [esp + 0x1c]
push 2
push ecx
lea ecx, [esp + 0x18]
call fcn.11e819c0
push str._baksd
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x38], 2
call fcn.11e7f9f0
push str.TEC_EncryptTempFile
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x34], 3
push eax
call fcn.11e7f9f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 6
call fcn.11e7f280
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 5
call fcn.11e7f280
mov ecx, dword [esp + 0x34]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x11f308cb
test al, 0x10
je 0x11f309cd
jmp 0x11f30957
lea edx, [esp + 0x20]
push 2
push edx
lea ecx, [esp + 0x18]
call fcn.11e819c0
push str._baksd
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0x34], 7
push eax
call fcn.11e7f9f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 9
call fcn.11e7f280
mov ecx, dword [esp + 0x40]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x11f309bf
test al, 0x10
je 0x11f309bf
mov edx, dword [esp + 0x34]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x11f309bf
mov eax, dword [esp + 0x34]
push eax
call ebp
cmp eax, 0xffffffff
je 0x11f309bf
mov ecx, dword [esp + 0x34]
or al, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], 5
call fcn.11e7f280
push 0x5c
push esi
call fcn.11e67430
add esp, 8
test eax, eax
je 0x11f30969
lea esi, [eax + 2]
lea edx, [esp + 0x34]
push 0x12022ca0
lea eax, [esp + 0x24]
push edx
push eax
call fcn.11e7f9f0
push esi
lea ecx, [esp + 0x44]
mov bl, 0xa
push eax
push ecx
mov byte [esp + 0x38], bl
call fcn.11e7f9f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0xb
call fcn.11e7f410
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], bl
call fcn.11e7f280
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 5
call fcn.11e7f280
mov ebx, dword [esp + 0x10]
jmp 0x11f309cd
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], 5
call fcn.11e7f280
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.11e7f280
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, esi
mov edx, dword [0x11fd6250]
mov dword [esp + 0x34], edx
test esi, esi
mov byte [esp + 0x2c], 0xc
jne 0x11f30a13
mov eax, dword [esp + 0x38]
push eax
call edi
push eax
push ebx
lea ecx, [esp + 0x40]
push str._s__lu.tes_s
push ecx
call fcn.11e82200
add esp, 0x14
jmp 0x11f30a2f
mov edx, dword [esp + 0x38]
push edx
push esi
call edi
push eax
push ebx
lea eax, [esp + 0x44]
push str._s__lu._d.tes_s
push eax
call fcn.11e82200
add esp, 0x18
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.11f2ff90
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
call ebp
cmp eax, 0xffffffff
je 0x11f30a5e
lea ecx, [esp + 0x34]
inc esi
mov byte [esp + 0x2c], 1
call fcn.11e7f280
jmp 0x11f309e3
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.11e7f410
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.11e7f280
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.11e7f280
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.11e7f280
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret