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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100350a0
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10064200]
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 [0x10064cd0]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x124], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10064ba8]
cmp eax, dword [ecx + 4]
jg 0x1002063f
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x100203f6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10020622
cmp dword [0x10064014], 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 0x1002043e
mov edi, dword [esi]
mov dword [ebp - 0x11c], edi
cmp dword [0x10064010], 0
je 0x1002056e
test eax, eax
je 0x1002056e
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 [0x10064010]
mov ecx, eax
mov dword [ebp - 0x120], 0x100
lea edx, [eax + edx*2]
cmp eax, edx
je 0x100204ae
nop dword [eax + eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x120]
jae 0x100204e6
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x110], 1
cmp ecx, edx
jne 0x10020490
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 0x100204d9
cmp byte [ebp + eax - 0x110], 0
jne 0x10020568
cmp ecx, edi
je 0x1002056e
sub ecx, 2
jmp 0x100204c3
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 [0x10064010]
cmp word [ebp - 0x114], di
je 0x10020558
cmp edx, 1
je 0x1002053a
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, di
jne 0x10020524
test esi, esi
jne 0x10020558
cmp ecx, dword [ebp - 0x11c]
je 0x1002054d
mov eax, dword [ebp - 0x118]
sub ecx, 2
jmp 0x10020510
mov esi, dword [ebp - 0x124]
or ecx, 0xffffffff
jmp 0x10020571
sub ecx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x124]
sar ecx, 1
jmp 0x10020571
sub ecx, edi
sar ecx, 1
jmp 0x10020571
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x10020611
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 0x100205a9
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.1001e220
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 4], 0
call fcn.10020390
mov ecx, dword [ebp - 0x12c]
cmp ecx, 7
jbe 0x10020611
mov edx, dword [ebp - 0x140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10020607
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10020607
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1002fd40
add esp, 8
cmp dword [esi + 0x14], 7
jbe 0x10020619
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.1002fe52
mov esp, ebp
pop ebp
ret 4
push 0x10064ba8
call fcn.1002fdca
add esp, 4
cmp dword [0x10064ba8], 0xffffffff
jne 0x100203ec
push 0x10036730
call fcn.100302f6
push 0x10064ba8
call fcn.1002fd79
add esp, 8
jmp 0x100203ec