Function at 0x702172e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x70314c62
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x470]
xor ebp, ebp
mov esi, ecx
mov edi, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], ebp
cmp ebx, ebp
jne 0x7021736f
push edi
mov ecx, 0x70326328
call fcn.7021b390
mov eax, edi
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x458
ret 4
call fcn.70216f00
cmp dword [esi + 0x208], ebp
jne 0x70217381
push edi
mov ecx, ebx
jmp 0x7021733e
mov eax, dword [0x703580e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x703580e4
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x468], ebp
mov dword [esp + 0x30], ebp
lea eax, [esp + 0x30]
push eax
call fcn.70216fc0
mov ebp, eax
test ebp, ebp
je 0x702178f7
mov edi, ebp
sub edi, ebx
sar edi, 1
test ebx, ebx
jne 0x702173c8
test edi, edi
jne 0x702178fe
mov edx, dword [0x703580e4]
mov eax, dword [edx]
push 2
push edi
mov ecx, 0x703580e4
call eax
test eax, eax
je 0x70217908
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
test edi, edi
jl 0x702178fe
cmp edi, dword [esi - 8]
jg 0x702178fe
mov dword [esi - 0xc], edi
add edi, edi
push edi
push ebx
xor ecx, ecx
push edi
push esi
mov word [edi + esi], cx
call fcn.702e23bf
add esp, 0x10
mov byte [esp + 0x468], 1
mov eax, dword [esi - 0xc]
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.7021b550
add esi, 0xfffffff0
mov byte [esp + 0x468], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x7021744c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x30]
movzx eax, word [ebp + ecx*2]
mov dword [esp + 0x18], ebp
lea ebp, [ebp + ecx*2]
test ax, ax
je 0x702174e8
cmp ax, 0x5c
je 0x702174dc
cmp ax, 0x2f
je 0x702174d0
mov ebx, dword [esp + 0x18]
mov esi, ebp
sub esi, ebx
sar esi, 1
mov ecx, 0x703580e4
lea edi, [esp + 0x48]
call fcn.7020da30
mov byte [esp + 0x468], 2
mov esi, dword [esp + 0x48]
mov eax, dword [esi - 0xc]
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.7021b550
lea eax, [esi - 0x10]
mov byte [esp + 0x468], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x702174c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, ebp
jmp 0x702178e6
cmp ax, 0x5c
je 0x702174dc
cmp ax, 0x2f
jne 0x70217539
movzx eax, word [ebp + 2]
add ebp, 2
test ax, ax
jne 0x702174d0
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x14]
call fcn.70219340
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.70208f30
mov edi, dword [esp + 0x3c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x468], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x70217343
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x70217343
cmp word [ebp], 0
je 0x702174e8
mov eax, ebp
mov dword [esp + 0x2c], 0
call fcn.70217030
mov edx, dword [0x703580e4]
mov edi, eax
mov eax, dword [edx]
mov esi, edi
sub esi, ebp
push 2
sar esi, 1
push esi
mov ecx, 0x703580e4
mov dword [esp + 0x24], edi
call eax
test eax, eax
je 0x70217908
lea ebx, [eax + 0x10]
mov dword [esp + 0x28], ebx
test esi, esi
jl 0x702178fe
cmp esi, dword [ebx - 8]
jg 0x702178fe
mov dword [ebx - 0xc], esi
add esi, esi
push esi
push ebp
xor ecx, ecx
push esi
push ebx
mov word [esi + ebx], cx
call fcn.702e23bf
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x26e]
mov byte [esp + 0x480], 3
push eax
mov word [esp + 0x270], dx
call fcn.702e95e0
mov eax, ebx
add esp, 0x1c
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x702175d0
sub eax, edx
sar eax, 1
je 0x70217615
mov ecx, dword [esp + 0x20]
push ebx
push ecx
lea edx, [esp + 0x25c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x70217615
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x70217676
mov ebp, edi
mov dword [esp + 0x2c], 1
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
mov ebx, ebp
call fcn.70216fc0
cmp dword [esp + 0x2c], 0
mov ecx, eax
mov dword [esp + 0x1c], ecx
jne 0x70217852
mov dword [esp + 0x24], 0
mov edi, edi
movzx eax, word [ebp]
test ax, ax
je case.0x7021766f.9
test ecx, ecx
je 0x70217659
cmp ebp, ecx
jae case.0x7021766f.9
movzx eax, ax
add eax, 0xfffffff7
cmp eax, 0x53
ja case.0x7021766f.11
movzx edx, byte [eax + 0x7021791c]
jmp dword [edx*4 + 0x70217910]
lea ecx, [esp + 0x254]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x70217615
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov esi, ebp
sub esi, ebx
sar esi, 1
mov ecx, 0x703580e4
lea edi, [esp + 0x44]
call fcn.7020da30
mov byte [esp + 0x468], 4
mov esi, dword [esp + 0x44]
jmp 0x70217889
mov esi, dword [esp + 0x24]
sar esi, 1
test ebx, ebx
jne 0x702176c7
test esi, esi
jne 0x702178fe
mov eax, dword [0x703580e4]
mov edx, dword [eax]
push 2
push esi
mov ecx, 0x703580e4
call edx
test eax, eax
je 0x70217908
lea edi, [eax + 0x10]
test esi, esi
jl 0x702178fe
cmp esi, dword [edi - 8]
jg 0x702178fe
lea eax, [esi + esi]
push eax
push ebx
push eax
xor ecx, ecx
mov dword [edi - 0xc], esi
push edi
mov word [eax + edi], cx
call fcn.702e23bf
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x66]
push eax
mov word [esp + 0x68], dx
call fcn.702e95e0
mov eax, edi
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x70217730
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x70217730
sub eax, edx
sar eax, 1
je 0x70217765
mov ecx, dword [esp + 0x20]
push edi
push ecx
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x70217765
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x70217798
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x7021766f.11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x24], 2
add ebp, 2
cmp ebp, dword [esp + 0x1c]
je 0x702177bd
mov ecx, dword [esp + 0x1c]
jmp 0x70217640
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x70217852
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x70217852
mov esi, ebp
sub esi, ebx
sar esi, 1
mov ecx, 0x703580e4
lea edi, [esp + 0x38]
call fcn.7020da30
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x56]
push edx
mov word [esp + 0x58], cx
call fcn.702e95e0
mov esi, dword [esp + 0x44]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x702177f4
sub eax, edx
sar eax, 1
je 0x7021782e
mov eax, dword [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x7021782e
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov edi, 1
test eax, eax
jne 0x70217832
mov edi, dword [esp + 0x2c]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x7021784e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je case.0x7021766f.9
push 0xd
push str._UserProfile_
lea ecx, [esp + 0x1c]
push ecx
call fcn.7021b550
jmp 0x702178bc
mov ebx, dword [esp + 0x18]
mov esi, ebp
sub esi, ebx
sar esi, 1
mov ecx, 0x703580e4
lea edi, [esp + 0x34]
call fcn.7020da30
mov byte [esp + 0x468], 5
mov esi, dword [esp + 0x34]
mov eax, dword [esi - 0xc]
push eax
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.7021b550
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x468], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x702178bc
invalid
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x468], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov ebx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x702178e6
invalid
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x702174f5
mov esi, dword [esp + 0x20]
jmp 0x702173a2
mov edx, ebx
jmp 0x702174ec
push 0x80070057
call fcn.702042c0
call fcn.7020b230
lea ecx, [ecx]
js 0x70217934
jo 0x702178ca
jbe 0x70217938
jo 0x7021789a
ja 0x7021793c
jo 0x7021791d
add byte [edx], al
add al, byte [eax]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add dword [edx], eax
add byte [edx], al
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add byte [edx], al
add al, byte [eax]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add byte [edx], al
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add byte [ecx + 1882647276], ah
mov eax, dword [1882647276]
add al, byte [eax]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [eax]
add al, byte [edx]
add byte [edx], al
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [eax]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [eax]