Function at 0x40c030
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 0x4de935
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x50
push esi
mov esi, ecx
mov ecx, 0x518caa
push edi
call fcn.004dd464
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.00405510
call fcn.00404760
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40c13c
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40c0e5
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c0db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c2b5
push ecx
push edx
call fcn.004b04f5
add esp, 8
push str.D:Program_Files
lea ecx, [ebp - 0x1c]
call fcn.004062e0
push str.D:Program_Filesgptchrometmp
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.004062e0
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x40c232
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40c26a
push dword [ebp - 0x1c]
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40c26d
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.00403600
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 0x40c191
mov byte [ebp - 0x11], 0
jmp 0x40c1d7
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 0x40c1d0
cmp byte [ebp - 0x24], 0
jne 0x40c1cc
cmp byte [ebp - 0x22], 0
je 0x40c1d0
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 0x40c212
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c208
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c2b5
push ecx
push edx
call fcn.004b04f5
add esp, 8
cmp byte [ebp - 0x11], 0
je 0x40c0e5
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 0x40c24d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov byte [esi], al
jmp 0x40c26d
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40c26a
push dword [ebp - 0x18]
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40c26d
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 0x40c28a
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 0x40c2a2
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.004b7be0
int3