Function at 0x10021c20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6d86
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x1010f770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xa8], 0
call fcn.100218b0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0
call fcn.100257b0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.100220f0
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x90], 8
jb 0x10021ca3
push dword [ebp - 0xa4]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x90], 7
cmp dword [ebp - 0x14], 8
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x94], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10021cdb
test al, 0x10
jne 0x10021ceb
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.10025930
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x8c]
call fcn.100256e0
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x10021d30
cmp dword [ebp - 0x14], 8
jb 0x10021d13
push dword [ebp - 0x28]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1001ed20
cmp dword [ebp - 0x78], 8
jb 0x10021d44
push dword [ebp - 0x8c]
call fcn.1005f16c
add esp, 4
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x70]
push eax
call fcn.10019d50
lea ecx, [ebp - 0x40]
call fcn.10020ba0
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.10026ee0
push 0x10
push 0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x58]
call fcn.1001ff90
mov edi, eax
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x10021de0
cmp dword [ebp - 0x2c], 8
jb 0x10021dc3
push dword [ebp - 0x40]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.1001ed20
cmp dword [ebp - 0x78], 8
jb 0x10021df4
push dword [ebp - 0x8c]
call fcn.1005f16c
add esp, 4
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 8
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.2C766F72
mov word [ecx], ax
call fcn.1001a3a0
lea ecx, [ebp - 0x8c]
call fcn.100209c0
add esp, 0x18
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.1001a1f0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x78], 8
jb 0x10021e4f
push dword [ebp - 0x8c]
call fcn.1005f16c
add esp, 4
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea edx, [ebp - 0x28]
call fcn.1001e3c0
add esp, 4
cmp dword [ebp - 0x44], 8
jb 0x10021e71
push dword [ebp - 0x58]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x10021e96
push dword [ebp - 0x40]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x10021ebb
push dword [ebp - 0x28]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x10021ee0
push dword [ebp - 0x70]
call fcn.1005f16c
add esp, 4
mov eax, esi
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.1005f171
mov esp, ebp
pop ebp
ret