Function at 0x40c530
Capabilities:
Check if file exists
Create directory
Delete directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dee85
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x50
push esi
mov esi, ecx
mov ecx, 0x51bcaa
push edi
call fcn.004dd914
xorps xmm0, xmm0
mov dword [ebp - 0x30], 1
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xf
mov word [ebp - 0x40], 0x44
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00405530
call fcn.00404800
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40c63c
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40c5e5
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c5db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c7b5
push ecx
push edx
call fcn.004b09a5
add esp, 8
push 0x50717c
lea ecx, [ebp - 0x1c]
call fcn.00406300
push str.D:Program_Filesgptchrometmp
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00406300
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x40c732
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40c76a
push dword [ebp - 0x1c]
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40c76d
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x60]
movq qword [ebp - 0x50], xmm0
push str..PhysicalDrive_d
push eax
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x48], 0
mov word [ebp - 0x44], 0
call fcn.004036a0
add esp, 0xc
lea eax, [ebp - 0x60]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c691
mov byte [ebp - 0x11], 0
jmp 0x40c6d7
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 8
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x2d0c14
push edi
movlpd qword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40c6d0
cmp byte [ebp - 0x24], 0
jne 0x40c6cc
cmp byte [ebp - 0x22], 0
je 0x40c6d0
mov byte [ebp - 0x11], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40c712
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c708
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c7b5
push ecx
push edx
call fcn.004b09a5
add esp, 8
cmp byte [ebp - 0x11], 0
je 0x40c5e5
mov byte [esi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x40c74d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov byte [esi], al
jmp 0x40c76d
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40c76a
push dword [ebp - 0x18]
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40c76d
mov byte [esi], 0
mov edx, dword [ebp - 0x18]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c78a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40c7a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004b8090
int3