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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440277
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x56211c]
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 dword [ebp - 0xa0], ecx
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x10], 0
je 0x40614c
cmp dword [esi + 0x14], 8
jb 0x40610d
mov eax, dword [esi]
jmp 0x40610f
mov eax, esi
push eax
call edi
cmp eax, 0xffffffff
setne al
test al, al
je 0x4063e7
cmp dword [esi + 0x10], 0
je 0x40614c
cmp dword [esi + 0x14], 8
jb 0x406130
mov eax, dword [esi]
jmp 0x406132
mov eax, esi
push eax
call edi
cmp eax, 0xffffffff
je 0x406141
shr eax, 4
and al, 1
jne 0x40614c
push esi
call fcn.00406000
jmp 0x4063e7
lea eax, [ebp - 0x91]
push eax
push 0x44faf4
lea ecx, [ebp - 0x28]
call fcn.00408e30
mov dword [ebp - 4], 0
push 0x2c4
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x406193
lea ecx, [ebp - 0x28]
push ecx
push esi
mov ecx, eax
call fcn.0041ddb0
mov ebx, eax
jmp 0x406195
xor ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x98], ebx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x14], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4061b7
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0041e880
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebx + 0x38]
cmp ecx, dword [eax + 0x38]
je 0x406320
lea eax, [ebp - 0x30]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x98]
call fcn.0041eb50
mov byte [ebp - 4], 7
mov edx, eax
mov ecx, esi
call fcn.00404370
test eax, eax
sete al
mov byte [ebp - 0x91], al
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1c], 8
jb 0x406234
push dword [ebp - 0x30]
call edi
mov al, byte [ebp - 0x91]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], cx
test al, al
jne 0x406304
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x98]
call fcn.0041ec10
mov byte [ebp - 4], 0xa
mov edx, eax
call fcn.0040d190
test al, al
sete al
mov byte [ebp - 0x91], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
mov dword [ebp - 0xa4], ecx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x3c], 8
jb 0x40629a
push dword [ebp - 0x50]
call edi
mov al, byte [ebp - 0x91]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], cx
test al, al
jne 0x406304
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x98]
call fcn.0041eb50
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xa0]
push eax
call fcn.004060c0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x70]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x5c], 8
jb 0x4062f0
push dword [ebp - 0x70]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov ecx, ebx
call fcn.0041e3e0
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebx + 0x38]
cmp ecx, dword [eax + 0x38]
jne 0x4061f5
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x406328
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4063b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], 0
mov ebx, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x44fb34
cmovae ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
push str.FileSystem.cpp_658__:_System::FileSystem::deletePath
cmovae eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004115f0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x28]
push eax
push ebx
lea ecx, [ebp - 0x90]
call fcn.0041f420
push 0x55e414
lea eax, [ebp - 0x90]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x9c]
test esi, esi
je 0x4063d3
mov ecx, esi
call fcn.0041e310
push esi
call edi
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.0041e310
push ebx
call edi
add esp, 4
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.0043babe
mov esp, ebp
pop ebp
ret 4