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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9980
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x100fa2c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100fc7c0]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x124], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100fc368]
cmp eax, dword [ecx + 4]
jg 0x1002a214
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x1002a006
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002a1f7
cmp dword [0x100fa01c], 7
mov eax, 0x100fa008
mov edi, esi
mov dword [ebp - 0x11c], esi
cmova eax, dword [0x100fa008]
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x118], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x114], eax
jbe 0x1002a04e
mov edi, dword [esi]
mov dword [ebp - 0x11c], edi
cmp dword [0x100fa018], 0
je 0x1002a17e
test eax, eax
je 0x1002a17e
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1005d120
mov eax, dword [ebp - 0x118]
add esp, 0xc
mov edx, dword [0x100fa018]
mov ecx, eax
mov dword [ebp - 0x120], 0x100
lea edx, [eax + edx*2]
cmp eax, edx
je 0x1002a0be
nop dword [eax + eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x120]
jae 0x1002a0f6
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x110], 1
cmp ecx, edx
jne 0x1002a0a0
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x120]
dec eax
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
movzx eax, word [ecx]
cmp ax, dx
jae 0x1002a0e9
cmp byte [ebp + eax - 0x110], 0
jne 0x1002a178
cmp ecx, edi
je 0x1002a17e
sub ecx, 2
jmp 0x1002a0d3
mov eax, dword [ebp - 0x114]
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp - 0x118]
movzx edx, word [eax]
lea ecx, [edi + ecx*2]
mov dword [ebp - 0x114], edx
nop word [eax + eax]
movzx edi, word [ecx]
mov esi, eax
mov edx, dword [0x100fa018]
cmp word [ebp - 0x114], di
je 0x1002a168
cmp edx, 1
je 0x1002a14a
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, di
jne 0x1002a134
test esi, esi
jne 0x1002a168
cmp ecx, dword [ebp - 0x11c]
je 0x1002a15d
mov eax, dword [ebp - 0x118]
sub ecx, 2
jmp 0x1002a120
mov esi, dword [ebp - 0x124]
or ecx, 0xffffffff
jmp 0x1002a181
sub ecx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x124]
sar ecx, 1
jmp 0x1002a181
sub ecx, edi
sar ecx, 1
jmp 0x1002a181
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x1002a1e6
cmp dword [esi + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x140], xmm0
cmovb ecx, dword [esi + 0x10]
mov eax, esi
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
jbe 0x1002a1b5
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.10024800
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 4], 0
call fcn.10029fa0
lea ecx, [ebp - 0x140]
call fcn.10025630
cmp dword [esi + 0x14], 7
jbe 0x1002a1ee
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005a1e4
mov esp, ebp
pop ebp
ret 4
push 0x100fc368
call fcn.1005a15c
add esp, 4
cmp dword [0x100fc368], 0xffffffff
jne 0x10029ffc
push 0x100bdc60
call fcn.1005a688
push 0x100fc368
call fcn.1005a10b
add esp, 8
jmp 0x10029ffc