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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x10], 0
push 0x4285a9
lea ecx, [ebp - 8]
call fcn.00403e80
push 0x4285aa
lea ecx, [ebp - 0xc]
call fcn.00403e80
mov eax, dword [0x773678]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x77330c]
cmp eax, dword [edx + 4]
jle 0x40eeb2
push 0x77330c
call fcn.0040fc29
add esp, 4
cmp dword [0x77330c], 0xffffffff
jne 0x40eeb2
push 0x4287ec
mov ecx, 0x773308
call fcn.0040f290
push 0x426c40
call fcn.00410180
add esp, 4
push 0x77330c
call fcn.0040fbdf
add esp, 4
lea ecx, [ebp + 8]
call fcn.00403fc0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
jmp 0x40eed3
push 0x773308
lea ecx, [ebp - 8]
call fcn.0040f570
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x40f0cb
lea edx, [ebp - 0x14]
push edx
mov ecx, 0x773308
call fcn.00403fd0
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp + 8]
call fcn.0040f930
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
call fcn.0040f570
lea ecx, [ebp - 8]
call fcn.00403fd0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40ef60
cmp dword [ebp - 0x24], 0x35
jne 0x40ef37
lea ecx, [ebp - 4]
call fcn.00403e30
jmp 0x40eec6
push 0x4285ab
lea edx, [ebp - 0xc]
push edx
call fcn.0040f390
add esp, 8
movzx eax, al
test eax, eax
je 0x40ef5b
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00403dd0
jmp 0x40eff4
mov edx, dword [ebp - 0x18]
and edx, 0x400
je 0x40efe7
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
lea eax, [ebp - 8]
push eax
call fcn.00403f30
call fcn.0040f0f0
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x14
je 0x40ef91
cmp dword [ebp - 0x1c], 0x17
jne 0x40efd8
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x40efc2
lea ecx, [ebp - 8]
call fcn.00403fd0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40efc0
mov dword [ebp - 0x10], 0xc
lea ecx, [ebp - 4]
call fcn.00403e30
jmp 0x40f0cb
jmp 0x40efd6
mov dword [ebp - 0x10], 0x12
lea ecx, [ebp - 4]
call fcn.00403e30
jmp 0x40f0cb
jmp 0x40efe5
lea ecx, [ebp - 4]
call fcn.00403e30
jmp 0x40eec6
jmp 0x40eff4
lea ecx, [ebp - 4]
call fcn.00403e30
jmp 0x40eec6
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 8]
call fcn.00403fd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40f0be
push 0x4285a8
lea eax, [ebp - 0xc]
push eax
call fcn.0040f3c0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40f0ad
push 0
push 0
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f4a0
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040f4a0
add esp, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00403dd0
lea ecx, [ebp - 0x28]
call fcn.00403e30
lea ecx, [ebp - 0x2c]
call fcn.00403e30
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 3
lea ecx, [ebp - 0xc]
call fcn.00403fd0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0
mov edx, 0x414
mov word [ebp - 0x44], dx
mov dword [ebp - 0x42], 0
mov dword [ebp - 0x3e], 0
mov dword [ebp - 0x3a], 0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [ebp - 0x10], 0xb
lea ecx, [ebp - 4]
call fcn.00403e30
jmp 0x40f0cb
lea ecx, [ebp - 4]
call fcn.00403e30
jmp 0x40eec6
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0xc]
call fcn.00403e30
lea ecx, [ebp - 8]
call fcn.00403e30
lea ecx, [ebp + 8]
call fcn.00403e30
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret