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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x4d0838
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00406a28
xor eax, eax
push ebp
push 0x4d1180
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d119c
push 0xa
mov ecx, dword [0x4e0c38]
mov dl, 1
mov eax, dword [0x436318]
call fcn.00442394
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x4360d0]
call fcn.00404ea8
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x4360d0]
call fcn.00404ea8
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x1d], 0
xor eax, eax
push ebp
push 0x4d111b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00441504
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.004417f8
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00441504
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004d0670
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00441504
lea eax, [ebp - 0x44]
mov ecx, 0x4d11c0
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x44]
mov dl, 1
call fcn.0041cb64
test al, al
je 0x4d09b3
lea eax, [ebp - 0x48]
mov ecx, 0x4d11c0
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x48]
call fcn.004072dc
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1e], al
cmp byte [ebp - 0x1e], 0
jne 0x4d09b3
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
mov ecx, 0x4d11c0
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x4c]
call fcn.004072dc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4d09aa
test byte [ebp - 0x23], 4
je 0x4d09aa
test byte [ebp - 0x24], 0x10
je 0x4d09aa
lea eax, [ebp - 0x50]
mov ecx, 0x4d11c0
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x50]
call fcn.004072dc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1e], al
jmp 0x4d09b3
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x54]
mov ecx, 0x4d11dc
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x54]
mov dl, 1
call fcn.0041cb64
test al, al
je 0x4d0a6f
lea eax, [ebp - 0x58]
mov ecx, 0x4d11f8
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x58]
call fcn.004072dc
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x29], al
cmp byte [ebp - 0x29], 0
jne 0x4d0a6f
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x5c]
mov ecx, 0x4d11f8
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x5c]
call fcn.004072dc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x4d0a66
test byte [ebp - 0x2f], 4
je 0x4d0a66
test byte [ebp - 0x30], 0x10
je 0x4d0a66
lea eax, [ebp - 0x60]
mov ecx, 0x4d11f8
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x60]
call fcn.004072dc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x29], al
jmp 0x4d0a6f
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x64]
mov ecx, 0x4d1218
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x64]
mov dl, 1
call fcn.0041cb64
test al, al
je 0x4d0b2b
lea eax, [ebp - 0x68]
mov ecx, 0x4d1218
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x68]
call fcn.004072dc
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x35], al
cmp byte [ebp - 0x35], 0
jne 0x4d0b2b
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x6c]
mov ecx, 0x4d1218
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x6c]
call fcn.004072dc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x4d0b22
test byte [ebp - 0x3b], 4
je 0x4d0b22
test byte [ebp - 0x3c], 0x10
je 0x4d0b22
lea eax, [ebp - 0x70]
mov ecx, 0x4d1218
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x70]
call fcn.004072dc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x35], al
jmp 0x4d0b2b
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_SetLastError
mov dl, 1
mov eax, dword [0x4360d0]
call fcn.00404ea8
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
call fcn.004cef88
lea eax, [ebp - 0x74]
mov ecx, 0x4d1234
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov eax, dword [eax + 0x2a0]
mov edx, 0x4d125c
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
mov edx, 0x4d125c
call fcn.004741f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, 0x14
call fcn.004ad888
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
xor eax, eax
push ebp
push 0x4d0c03
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x78]
mov ecx, 0x4d1234
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x78]
mov dl, 1
call fcn.0041cb64
test al, al
jne 0x4d0bf9
lea eax, [ebp - 0x7c]
mov ecx, 0x4d1234
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0c0d
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
mov eax, dword [ebp - 0x10]
call fcn.004421cc
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
call fcn.004cef88
lea eax, [ebp - 0x80]
mov ecx, 0x4d12ac
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov eax, dword [eax + 0x2a0]
mov edx, 0x4d12e0
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
mov edx, 0x4d12e0
call fcn.004741f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, 0x1e
call fcn.004ad888
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
xor eax, eax
push ebp
push 0x4d0cf7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x84]
mov ecx, 0x4d12ac
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x84]
mov dl, 1
call fcn.0041cb64
test al, al
jne 0x4d0ced
lea eax, [ebp - 0x88]
mov ecx, 0x4d12ac
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0d01
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
mov eax, dword [ebp - 0x10]
call fcn.004421cc
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
call fcn.004cef88
lea eax, [ebp - 0x8c]
mov ecx, 0x4d1340
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov eax, dword [eax + 0x2a0]
mov edx, 0x4d1378
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
mov edx, 0x4d1378
call fcn.004741f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, 0x28
call fcn.004ad888
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
xor eax, eax
push ebp
push 0x4d0df1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x90]
mov ecx, 0x4d1340
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x90]
mov dl, 1
call fcn.0041cb64
test al, al
jne 0x4d0de7
lea eax, [ebp - 0x94]
mov ecx, 0x4d1340
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0dfb
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
mov eax, dword [ebp - 0x10]
call fcn.004421cc
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
call fcn.004cef88
lea eax, [ebp - 0x98]
mov ecx, 0x4d13d8
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov eax, dword [eax + 0x2a0]
mov edx, 0x4d1400
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
mov edx, 0x4d1400
call fcn.004741f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, 0x32
call fcn.004ad888
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
xor eax, eax
push ebp
push 0x4d0eeb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x9c]
mov ecx, 0x4d13d8
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0x9c]
mov dl, 1
call fcn.0041cb64
test al, al
jne 0x4d0ee1
lea eax, [ebp - 0xa0]
mov ecx, 0x4d13d8
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0ef5
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
mov eax, dword [ebp - 0x10]
call fcn.004421cc
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
call fcn.004cef88
lea eax, [ebp - 0xa4]
mov ecx, 0x4d1450
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov eax, dword [eax + 0x2a0]
mov edx, 0x4d1478
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
mov edx, 0x4d1478
call fcn.004741f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, 0x3c
call fcn.004ad888
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
xor eax, eax
push ebp
push 0x4d0fe5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa8]
mov ecx, 0x4d1450
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0xa8]
mov dl, 1
call fcn.0041cb64
test al, al
jne 0x4d0fdb
lea eax, [ebp - 0xac]
mov ecx, 0x4d1450
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0fef
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
mov eax, dword [ebp - 0x10]
call fcn.004421cc
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
call fcn.004cef88
lea eax, [ebp - 0xb0]
mov ecx, 0x4d14c8
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
mov eax, dword [eax + 0x2a0]
mov edx, 0x4d14f0
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
mov edx, 0x4d14f0
call fcn.004741f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, 0x46
call fcn.004ad888
mov edx, 0x258
mov eax, dword [ebp - 4]
call fcn.004d0750
xor eax, eax
push ebp
push 0x4d10df
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xb4]
mov ecx, 0x4d14c8
mov edx, dword [ebp - 8]
call fcn.00407530
mov eax, dword [ebp - 0xb4]
mov dl, 1
call fcn.0041cb64
test al, al
jne 0x4d10d5
lea eax, [ebp - 0xb8]
mov ecx, 0x4d14c8
mov edx, dword [ebp - 8]
call fcn.00407530
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004d07b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d10e9
mov eax, dword [ebp - 0x10]
call fcn.00404ed8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, 0x50
call fcn.004ad888
mov edx, 0xbb8
mov eax, dword [ebp - 4]
call fcn.004d0750
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d1142
mov eax, dword [ebp - 0x18]
call fcn.00404ed8
mov eax, dword [ebp - 0x14]
call fcn.00404ed8
mov eax, dword [ebp - 0xc]
call fcn.00404ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1187
lea eax, [ebp - 0xb8]
mov edx, 0x1e
call fcn.004069a4
lea eax, [ebp - 8]
call fcn.00406944
ret