Function at 0x429330
Capabilities:
Access peb ldr_data
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b2160
push eax
mov dword fs:[0], esp
sub esp, 0x14
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4295e6
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4295e6
mov eax, dword [0x4bc794]
push ebp
push esi
mov dword [esp + 0x10], eax
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.00447770
mov al, byte [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
mov byte [esp + 0x28], 1
je 0x42951d
push 0x3a
lea ecx, [esp + 0x10]
call fcn.00448580
cmp eax, 1
jne 0x42951d
lea ecx, [esp + 0x18]
push 2
push ecx
lea ecx, [esp + 0x14]
call fcn.00448890
push str._baksd
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x34], 2
call fcn.00447f60
push str.TEC_EncryptTempFile
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x30], 3
push eax
call fcn.00447f60
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 6
call fcn.00447cd0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 5
call fcn.00447cd0
mov ecx, dword [esp + 0x30]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x429418
test al, 0x10
je 0x42950f
jmp 0x4294a0
lea edx, [esp + 0x1c]
push 2
push edx
lea ecx, [esp + 0x14]
call fcn.00448890
push str._baksd
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0x30], 7
push eax
call fcn.00447f60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 9
call fcn.00447cd0
mov ecx, dword [esp + 0x3c]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x429501
test al, 0x10
je 0x429501
mov edx, dword [esp + 0x30]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x429501
mov eax, dword [esp + 0x30]
push eax
call ebp
cmp eax, 0xffffffff
je 0x429501
mov ecx, dword [esp + 0x30]
or al, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x28], 5
call fcn.00447cd0
lea edx, [esp + 0x30]
push 0x4e2014
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00447f60
mov esi, eax
push edi
mov byte [esp + 0x2c], 0xa
call fcn.00429300
add esp, 4
lea ecx, [esp + 0x3c]
push eax
push esi
push ecx
call fcn.00447f60
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0xb
call fcn.00447d60
lea ecx, [esp + 0x3c]
mov byte [esp + 0x28], 0xa
call fcn.00447cd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 5
call fcn.00447cd0
mov edi, dword [esp + 0xc]
jmp 0x42950f
lea ecx, [esp + 0x3c]
mov byte [esp + 0x28], 5
call fcn.00447cd0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.00447cd0
xor esi, esi
mov edx, dword [0x4bc794]
mov dword [esp + 0x30], edx
test esi, esi
mov byte [esp + 0x28], 0xc
jne 0x42954c
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push eax
push edi
push str._s.tes_s
push ecx
call fcn.00449050
add esp, 0x10
jmp 0x429565
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x30]
push edx
push esi
push edi
push str._s._d.tes_s
push eax
call fcn.00449050
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00428b10
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call ebp
cmp eax, 0xffffffff
je 0x429594
lea ecx, [esp + 0x30]
inc esi
mov byte [esp + 0x28], 1
call fcn.00447cd0
jmp 0x42951f
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.00447d60
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.00447cd0
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00447cd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00447cd0
pop esi
pop ebp
mov eax, 1
pop edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x20
ret