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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fa80
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x1004d200]
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 [0x1004db70]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x124], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1004da48]
cmp eax, dword [ecx + 4]
jg 0x1000f02f
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x1000ede6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000f012
cmp dword [0x1004d014], 7
mov eax, section..data
mov edi, esi
mov dword [ebp - 0x11c], esi
cmova eax, dword [section..data]
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x118], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x114], eax
jbe 0x1000ee2e
mov edi, dword [esi]
mov dword [ebp - 0x11c], edi
cmp dword [0x1004d010], 0
je 0x1000ef5e
test eax, eax
je 0x1000ef5e
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x118]
add esp, 0xc
mov edx, dword [0x1004d010]
mov ecx, eax
mov dword [ebp - 0x120], 0x100
lea edx, [eax + edx*2]
cmp eax, edx
je 0x1000ee9e
nop dword [eax + eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x120]
jae 0x1000eed6
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x110], 1
cmp ecx, edx
jne 0x1000ee80
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 0x1000eec9
cmp byte [ebp + eax - 0x110], 0
jne 0x1000ef58
cmp ecx, edi
je 0x1000ef5e
sub ecx, 2
jmp 0x1000eeb3
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 [0x1004d010]
cmp word [ebp - 0x114], di
je 0x1000ef48
cmp edx, 1
je 0x1000ef2a
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, di
jne 0x1000ef14
test esi, esi
jne 0x1000ef48
cmp ecx, dword [ebp - 0x11c]
je 0x1000ef3d
mov eax, dword [ebp - 0x118]
sub ecx, 2
jmp 0x1000ef00
mov esi, dword [ebp - 0x124]
or ecx, 0xffffffff
jmp 0x1000ef61
sub ecx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x124]
sar ecx, 1
jmp 0x1000ef61
sub ecx, edi
sar ecx, 1
jmp 0x1000ef61
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x1000f001
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 0x1000ef99
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.1000cfd0
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 4], 0
call fcn.1000ed80
mov ecx, dword [ebp - 0x12c]
cmp ecx, 7
jbe 0x1000f001
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000eff7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000eff7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001d06a
add esp, 8
cmp dword [esi + 0x14], 7
jbe 0x1000f009
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.1001d158
mov esp, ebp
pop ebp
ret 4
push 0x1004da48
call fcn.1001d0f4
add esp, 4
cmp dword [0x1004da48], 0xffffffff
jne 0x1000eddc
push 0x10020fe0
call fcn.1001d57c
push 0x1004da48
call fcn.1001d0a3
add esp, 8
jmp 0x1000eddc