Function at 0x414900
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 0x4e8405
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x50
push esi
mov esi, ecx
mov ecx, 0x524e73
push edi
call fcn.004e6414
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.00407700
call fcn.00407340
add esp, 0x18
cmp eax, 0xffffffff
jne 0x414a0c
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x4149b5
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4149ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414b85
push ecx
push edx
call fcn.004b8e2a
add esp, 8
push str.D:Program_Files
lea ecx, [ebp - 0x1c]
call fcn.00408580
push str.D:Program_Filesgptchrometmp
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00408580
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x414b02
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x414b3a
push dword [ebp - 0x1c]
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x414b3d
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.00403b70
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 0x414a61
mov byte [ebp - 0x11], 0
jmp 0x414aa7
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 0x414aa0
cmp byte [ebp - 0x24], 0
jne 0x414a9c
cmp byte [ebp - 0x22], 0
je 0x414aa0
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 0x414ae2
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x414ad8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414b85
push ecx
push edx
call fcn.004b8e2a
add esp, 8
cmp byte [ebp - 0x11], 0
je 0x4149b5
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 0x414b1d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov byte [esi], al
jmp 0x414b3d
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x414b3a
push dword [ebp - 0x18]
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x414b3d
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 0x414b5a
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 0x414b72
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.004c05a0
int3