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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6861ed
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x78a6d4]
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 eax, ecx
mov dword [ebp - 0x2cc], eax
cmp dword [eax + 0x14], 8
mov edx, eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c8], ecx
jb 0x6220a9
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp - 0x70], 0
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6220d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00447250
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x622335
lea ecx, [eax - 1]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 7
cmp eax, ecx
jb 0x6226b6
sub eax, ecx
or ebx, 0xffffffff
cmp eax, 0xffffffff
cmovb ebx, eax
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x2c4], eax
cmp ebx, 7
ja 0x62215b
lea esi, [ebx + ebx]
mov dword [ebp - 0x30], ebx
push esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0058c9c0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x40], ax
mov edi, dword [ebp - 0x40]
jmp 0x6221ee
cmp ebx, 0x7ffffffe
ja 0x6226bb
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x62218b
mov eax, 0xfffffffe
mov esi, accept
push eax
call fcn.00447610
add esp, 4
mov edi, eax
jmp 0x6221cc
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x6226c0
add eax, eax
cmp eax, 0x1000
jb 0x6221b9
push eax
call fcn.00447610
add esp, 4
mov edi, eax
jmp 0x6221cc
test eax, eax
je 0x6221ca
push eax
call fcn.0058a8a1
add esp, 4
mov edi, eax
jmp 0x6221cc
xor edi, edi
mov dword [ebp - 0x2c], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x2c4]
mov dword [ebp - 0x30], ebx
push edi
call fcn.0058c9c0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov dword [ebp - 0x40], edi
mov edx, 0x70cbfc
lea ecx, [ebp - 0x40]
call fcn.00458840
mov ecx, dword [ebp - 0x2c]
mov bl, al
cmp ecx, 8
jb 0x622234
lea ecx, [ecx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x62222a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6226c5
push ecx
push edi
call fcn.0058ab22
add esp, 8
test bl, bl
je 0x622247
push 1
push 0x70cbfc
lea ecx, [ebp - 0x70]
call int.0044e0d0
mov eax, dword [ebp - 0x2cc]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x622257
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x622335
mov ecx, dword [ebp - 0x60]
mov eax, accept
sub eax, ecx
cmp eax, 3
jb 0x6226ca
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 3
cmovae eax, dword [ebp - 0x70]
push 0x7511a0
push ecx
push eax
push ecx
push dword [ebp - 0x2c4]
lea ecx, [ebp - 0x40]
call fcn.0044c500
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov dword [ebp - 0x2c4], esi
cmp edx, 8
jb 0x6222f8
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x6222ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6226cf
push edx
push ecx
call fcn.0058ab22
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp esi, 0xffffffff
jne 0x622374
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindFirstFile
push 0x49
push 0x51
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonUtilityDeleteFolder.cpp
push str.RecursiveDeleteDirectory
call fcn.00612830
add esp, 0x20
xor bl, bl
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x622692
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x622688
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6226d4
jmp 0x622688
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
nop dword [eax]
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6223b0
sub ecx, edx
lea eax, [ebp - 0x294]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00447250
mov edi, dword [ebp - 0x44]
lea ecx, [ebp - 0x58]
mov ebx, dword [ebp - 0x58]
cmp edi, 8
mov esi, dword [ebp - 0x48]
mov edx, 1
cmovae ecx, ebx
mov eax, esi
cmp esi, 1
cmova eax, edx
mov edx, 0x71452c
push eax
call fcn.00447c00
add esp, 4
test eax, eax
jne 0x62240b
cmp esi, 1
jb 0x62240b
jbe 0x62255d
cmp edi, 8
lea ecx, [ebp - 0x58]
mov edx, 2
mov eax, esi
cmovae ecx, ebx
cmp esi, 2
cmova eax, edx
mov edx, 0x7511c4
push eax
call fcn.00447c00
add esp, 4
test eax, eax
jne 0x62243e
cmp esi, 2
jb 0x62243e
jbe 0x62255d
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
cmovae edx, dword [ebp - 0x70]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x622450
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00447250
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
push eax
call int.0044e0d0
mov ecx, dword [ebp - 0x2c0]
test cl, 0x10
je 0x6224a3
push dword [ebp - 0x2c8]
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00622060
add esp, 4
jmp 0x62255d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
and ecx, 0xfffffffe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x62255d
mov eax, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x28]
push eax
cmp dword [eax + 0x10], 0
setne dl
call fcn.006218c0
add esp, 4
test al, al
jne 0x62255d
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
jb 0x622500
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x62253f
push esi
call fcn.0059a3bd
inc eax
add esp, 4
cmp eax, 0x3fffffff
jg 0x62253f
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0058b710
mov edi, esp
test edi, edi
je 0x62253f
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x622541
xor eax, eax
push eax
push str.Failed_to_mark_file___s__for_delete_after_reboot
push 0x57
push 0x7c
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonUtilityDeleteFolder.cpp
push str.RecursiveDeleteDirectory
call fcn.006129f0
add esp, 0x18
mov esi, dword [ebp - 0x2c4]
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne bl
test eax, eax
jne 0x6225a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x6225a8
push 0
push 0
push eax
push str.FindNextFile
push 0x45
push 0x89
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonUtilityDeleteFolder.cpp
push str.RecursiveDeleteDirectory
call fcn.00612830
add esp, 0x20
test bl, bl
jne 0x6223a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x2cc]
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x6225c7
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x6225e9
cmp dword [ebx + 0x14], 8
jb 0x6225da
mov ebx, dword [ebx]
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor bl, bl
jmp 0x6225eb
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x622625
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x62261b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6226d4
push edx
push ecx
call fcn.0058ab22
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x62266f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x622665
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6226d4
push edx
push ecx
call fcn.0058ab22
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
jmp 0x622337
push edx
push ecx
call fcn.0058ab22
add esp, 8
mov al, bl
lea esp, [ebp - 0x2dc]
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.0058a893
mov esp, ebp
pop ebp
ret
call fcn.0044a9d0
call fcn.00446fa0
call fcn.00446f00
call fcn.005968cf
call fcn.00446fa0
call fcn.005968cf
call fcn.005968cf
int3