Function at 0x10021720
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a833d
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x100c66d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0xe4], ebx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], ebx
xor edx, edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
push 1
lea eax, [ebp - 0x80]
push eax
sub esp, 0x1c
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0xd8], esp
call fcn.10025890
sub esp, 0x1c
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0xe0], esp
call fcn.10033d80
mov ecx, 0x80000001
mov byte [ebp - 4], 1
call fcn.10035dc0
add esp, 0x40
cmp dword [ebp - 0x70], ebx
je 0x10021a0a
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xe0], 0x80000001
call fcn.10033d20
mov dword [ebp - 0xd8], eax
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.10033d80
push eax
mov eax, 0x100b6220
lea esi, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.100068d0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x80]
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.10017470
mov edi, eax
mov byte [ebp - 4], 6
cmp dword [0x100c9918], ebx
jne 0x10021856
push 0x138
call fcn.1003d7eb
add esp, 4
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x1002184b
mov esi, eax
call fcn.10035040
jmp 0x1002184d
xor eax, eax
mov byte [ebp - 4], 6
mov dword [0x100c9918], eax
mov edx, dword [ebp - 0xd8]
push 1
lea ecx, [ebp - 0xe0]
push ecx
mov ecx, edi
lea esi, [ebp - 0x48]
call fcn.100357d0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.100050d0
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x10021892
mov edx, dword [ebp - 0x48]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], esi
jb 0x100218b4
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0xa4], esi
jb 0x100218d7
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x88], esi
jb 0x10021903
mov edx, dword [ebp - 0x9c]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0xc0], esi
jb 0x10021933
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.1003d468
add esp, 4
mov edi, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x10021b15
push 1
lea edx, [ebp - 0x80]
push edx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xe8], esp
call fcn.10025890
sub esp, 0x1c
mov byte [ebp - 4], 9
mov esi, esp
mov dword [ebp - 0xd8], esp
call fcn.10033d80
mov ecx, 0x80000002
mov byte [ebp - 4], 1
call fcn.10035dc0
add esp, 0x40
cmp dword [ebp - 0x70], ebx
je 0x10021b05
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xd8], 0x80000002
call fcn.10033d20
mov dword [ebp - 0xe0], eax
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 0xa
call fcn.10033d80
push eax
mov eax, 0x100b6220
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.100068d0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x80]
lea edi, [ebp - 0xb8]
mov byte [ebp - 4], 0xc
call fcn.10017470
mov edi, eax
mov byte [ebp - 4], 0xd
cmp dword [0x100c9918], ebx
jne 0x10021a1f
push 0x138
call fcn.1003d7eb
add esp, 4
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x10021a14
mov esi, eax
call fcn.10035040
jmp 0x10021a16
mov esi, 8
jmp 0x10021939
xor eax, eax
mov byte [ebp - 4], 0xd
mov dword [0x100c9918], eax
mov edx, dword [ebp - 0xe0]
push 1
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
lea esi, [ebp - 0x9c]
call fcn.100357d0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.100050d0
mov esi, 8
cmp dword [ebp - 0x88], esi
jb 0x10021a64
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
cmp dword [ebp - 0xa4], esi
jb 0x10021a95
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x34], esi
jb 0x10021abb
mov edx, dword [ebp - 0x48]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], esi
jb 0x10021ad8
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0xc0], esi
jb 0x10021aff
mov eax, dword [ebp - 0xd4]
push eax
call fcn.1003d468
add esp, 4
mov edi, dword [ebp - 0xdc]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x10021c07
mov esi, 8
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x10021b26
push str.invalid_string_position
call fcn.1003bee3
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x10021b31
lea eax, [ebp - 0x2c]
movzx eax, word [eax + ecx*2]
mov ecx, 0x5c
cmp cx, ax
je 0x10021b49
mov edx, 0x2f
cmp dx, ax
jne 0x10021b55
push eax
lea esi, [ebp - 0x2c]
call fcn.10034ac0
add esp, 4
lea ebx, [ebp - 0x9c]
call fcn.10021330
xor ebx, ebx
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x8c], ebx
je 0x10021b90
push 1
mov eax, 0x100b6220
lea ecx, [ebp - 0x2c]
call fcn.10005e70
push ebx
lea eax, [ebp - 0x9c]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.10005d70
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x88], esi
jb 0x10021bb0
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.1003d468
add esp, 4
cmp dword [ebp - 0x1c], ebx
je 0x10021c61
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x10021bc4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x10021c61
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov edi, 7
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.10005150
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0x11
lea ebx, [edi - 5]
jmp 0x10021c93
push ebx
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push 0x100b61ec
mov ecx, edi
mov word [edi], dx
call fcn.10005fb0
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x10021c39
mov eax, dword [ebp - 0x80]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x18], esi
jb 0x10021c5a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1003d468
add esp, 4
mov eax, edi
jmp 0x10021d40
push ebx
xor edx, edx
push 0x100b61ec
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
call fcn.10005fb0
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0x12
mov ebx, 4
mov edi, 7
mov esi, dword [ebp - 0xdc]
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], 0
mov word [esi], cx
push eax
mov ecx, esi
mov dword [ebp - 0xe4], ebx
call fcn.100050d0
or ebx, 1
test bl, 4
je 0x10021ce3
and ebx, 0xfffffffb
cmp dword [ebp - 0x50], 8
jb 0x10021cd3
mov edx, dword [ebp - 0x64]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
test bl, 2
je 0x10021d0a
cmp dword [ebp - 0x34], 8
jb 0x10021cfa
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x6c], 8
jb 0x10021d1c
mov eax, dword [ebp - 0x80]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], cx
jb 0x10021d3e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1003d468
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c5b5
mov esp, ebp
pop ebp
ret