Function at 0x4bd670
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x4bd678
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov ecx, 3
lea eax, [ebp - 0x10]
mov edx, dword [0x40125c]
call fcn.00407f78
xor eax, eax
push ebp
push 0x4bdde4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 1
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x4326d8]
call fcn.0043ed88
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x3b8], esi
mov eax, esi
mov dx, 0x3b
call fcn.0043e340
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3b8]
mov dl, 1
call fcn.0043e3f4
xor edx, edx
push ebp
push 0x4bdd2a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c0]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4bd722
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x3b0]
push eax
mov cl, 1
mov edx, 0x4bde00
mov eax, dword [ebp - 0x14]
call fcn.004be96c
call fcn.00406c34
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c0]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4bdc29
inc eax
mov dword [ebp - 0x20], eax
xor esi, esi
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x394]
call fcn.00470e54
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
call fcn.004072fc
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x39c]
call fcn.00470e54
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
call fcn.004072fc
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x398]
call fcn.00470e54
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.004072fc
mov eax, dword [0x4c6f7c]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c0]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3bc]
mov ecx, 0x4bde5c
mov edi, dword [eax]
call dword [edi + 4]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x394]
call fcn.00470e8c
mov eax, dword [0x4c6f7c]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c0]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3bc]
mov ecx, 0x4bde78
mov edi, dword [eax]
call dword [edi + 4]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x39c]
call fcn.00470e8c
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c0]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3bc]
mov ecx, 0x4bde94
mov edi, dword [eax]
call dword [edi + 4]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x14]
call fcn.004bd3d4
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x398]
call fcn.00470e8c
push 0
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c0]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3bc]
mov ecx, 0x4bdeb0
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x3b1], al
push 0
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c0]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3bc]
mov ecx, 0x4bdee0
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x3b2], al
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c0]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3bc]
mov ecx, 0x4bdf08
mov edi, dword [eax]
call dword [edi + 4]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
add eax, 0x3b4
call fcn.004072b4
push 9
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c0]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3bc]
mov ecx, 0x4bdf30
mov edi, dword [eax]
call dword [edi + 0xc]
mov edi, eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x39c]
call fcn.00470e54
mov edx, dword [ebp - 0x60]
mov eax, 0x4cd284
mov ecx, 0x4bdf48
call fcn.00407aa8
mov eax, dword [ebp - 0x14]
call fcn.004be250
mov eax, dword [0x4c72bc]
mov eax, dword [eax]
call fcn.004b7438
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x394]
call fcn.00470e54
mov eax, dword [ebp - 0x64]
mov edx, dword [0x4c6f7c]
call fcn.00407be0
je 0x4bd9b6
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x39c]
call fcn.00470e54
mov eax, dword [ebp - 0x68]
mov edx, dword [0x4c6f7c]
call fcn.00407be0
jne 0x4bd9ee
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x3b0]
push eax
mov cl, 1
mov edx, dword [0x4c6f7c]
mov eax, dword [ebp - 0x14]
call fcn.004be96c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38c]
xor edx, edx
call fcn.004a3118
mov eax, dword [ebp - 0x14]
call fcn.004be250
call fcn.00406c34
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x394]
call fcn.00470e54
mov eax, dword [ebp - 0x6c]
mov dl, 1
call fcn.0041c404
or bl, al
test al, al
jne 0x4bda47
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x394]
mov edx, dword [ebp - 0x10]
call fcn.00470e8c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x39c]
mov edx, dword [ebp - 0xc]
call fcn.00470e8c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x398]
mov edx, dword [ebp - 8]
call fcn.00470e8c
jmp 0x4bdc1f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3b8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x3b4], 0
je 0x4bda78
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x3b4]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3b8]
call fcn.0043e0bc
mov eax, dword [ebp - 0x14]
call fcn.004bc60c
test al, al
je 0x4bdbd8
mov edx, edi
mov eax, dword [ebp - 0x14]
call fcn.004be788
mov edi, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x390]
mov eax, dword [eax + 0x270]
xor edx, edx
call fcn.004a1de0
mov edx, 0x4bdf60
call fcn.004a1d3c
lea edx, [ebp - 4]
mov eax, dword [0x4c73ec]
call fcn.004ba860
push 0x4bc044
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
push 0x4bdf94
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x28]
push 1
push 0x4bdfc0
push 0
mov eax, dword [0x4cd284]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004b9fe0
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004ba040
push 0xff00
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x39c]
call fcn.00470e54
push dword [ebp - 0x74]
push 0x4bdfd4
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x398]
call fcn.00470e54
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.00407b30
mov ecx, dword [ebp - 0x70]
mov dl, 1
mov eax, dword [0x4335ec]
call fcn.0043f828
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.0043ee4c
mov eax, dword [0x4c6f88]
call fcn.004075f0
mov edx, eax
mov ecx, 6
mov eax, dword [ebp - 0x18]
call fcn.0043f0e0
mov eax, dword [ebp - 0x18]
call fcn.004054ec
lea eax, [ebp - 4]
call fcn.00409f50
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38c]
xor edx, edx
call fcn.004a3118
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x390]
mov eax, dword [eax + 0x270]
xor edx, edx
call fcn.004a1de0
mov edx, 0x4bdfe4
call fcn.004a1d3c
mov eax, dword [ebp - 0x14]
call fcn.004be250
jmp 0x4bdc1f
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x3b0]
push eax
push 0x4be000
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x394]
call fcn.00470e54
push dword [ebp - 0x80]
push 0x4be03c
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00407b30
mov edx, dword [ebp - 0x7c]
mov cl, 2
mov eax, dword [ebp - 0x14]
call fcn.004be96c
inc esi
dec dword [ebp - 0x20]
jne 0x4bd73f
test bl, bl
je 0x4bdc6b
cmp byte [ebp - 0x19], 0
je 0x4bdc4f
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x3b0]
push eax
xor ecx, ecx
mov edx, 0x4be060
mov eax, dword [ebp - 0x14]
call fcn.004be96c
jmp 0x4bdc85
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x3b0]
push eax
mov cl, 2
mov edx, 0x4be0b0
mov eax, dword [ebp - 0x14]
call fcn.004be96c
jmp 0x4bdc85
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x3b0]
push eax
mov cl, 1
mov edx, 0x4be118
mov eax, dword [ebp - 0x14]
call fcn.004be96c
lea eax, [ebp - 0x84]
call fcn.0041c804
lea eax, [ebp - 0x84]
mov edx, 0x4be188
call fcn.00407a50
mov esi, dword [ebp - 0x84]
mov dword [ebp - 0x88], esi
mov eax, dword [ebp - 0x88]
call fcn.0040786c
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4bdd18
call sub.kernel32.dll_GetLastError_1
mov edi, eax
mov dword [ebp - 0x88], esi
mov eax, dword [ebp - 0x88]
call fcn.0040786c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4bdd12
test ah, 4
je 0x4bdd12
test al, 0x10
je 0x4bdd12
mov dword [ebp - 0x88], esi
mov eax, dword [ebp - 0x88]
call fcn.0040786c
push eax
call sub.kernel32.dll_RemoveDirectoryW_1
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4bdd18
push edi
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x14]
call fcn.004b26d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bdd6b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3b8]
call fcn.004054ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bddeb
lea eax, [ebp - 0x84]
call fcn.00406ef4
lea eax, [ebp - 0x80]
call fcn.00406ef4
lea eax, [ebp - 0x7c]
call fcn.00406ef4
lea eax, [ebp - 0x78]
mov edx, 7
call fcn.00406f54
lea eax, [ebp - 0x5c]
mov edx, 0xc
call fcn.00406f54
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00406f54
lea eax, [ebp - 0x10]
mov ecx, 3
mov edx, dword [0x40125c]
call fcn.0040806c
lea eax, [ebp - 4]
call fcn.00409f50
ret