Function at 0x485330
Capabilities:
Create directory
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5690ea
mov eax, dword fs:[0]
push eax
sub esp, 0xc14
mov eax, dword [0x5c3484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xb78]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x210
push ebx
push eax
call fcn.004c14d0
add esp, 0xc
lea eax, [ebp - 0xb78]
push ebx
push eax
push 0x108
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
call esi
test eax, eax
je 0x485715
push 0x210
lea eax, [ebp - 0x968]
push ebx
push eax
call fcn.004c14d0
add esp, 0xc
lea eax, [ebp - 0x968]
push ebx
push eax
push 0x108
push edi
call esi
test eax, eax
je 0x485715
push 0x210
lea eax, [ebp - 0x540]
push ebx
push eax
call fcn.004c14d0
lea ecx, [ebp - 0x540]
add esp, 0xc
lea esi, [ebp - 0x968]
mov eax, ecx
mov edx, 0x108
sub esi, eax
lea eax, [edx + 0x7ffffef6]
test eax, eax
je 0x48540e
movzx eax, word [esi + ecx]
test ax, ax
je 0x48540e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4853f0
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push 0x100
lea eax, [ebp - 0x330]
push 0
push eax
call fcn.004c14d0
add esp, 0xc
lea eax, [ebp - 0x330]
push 0x80
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push str.NTFS
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x485715
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0xbf8]
mov dword [ebp - fcn.00485870], vtable.std::_Func_impl_no_alloc_class__lambda_186032635fb61df55b59a67a3433a4ee___void___.0
mov dword [ebp - 0xbf4], edi
mov dword [ebp - 0xbd4], eax
lea eax, [ebp - 0xba4]
mov dword [ebp - 4], 0
mov dword [ebp - 0xbd0], eax
mov dword [ebp - 0xb80], 0
push eax
lea ecx, [ebp - 0xbf8]
mov byte [ebp - 4], 1
call fcn.00485870
mov ecx, dword [ebp - 0xbd4]
mov dword [ebp - 0xb80], eax
test ecx, ecx
je 0x4854f9
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xbf8]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0xbd4], 0
push 0
push 0x2200000
push 3
push 0
push 0
push 0x40000000
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x485532
mov ecx, dword [ebp - 0xb80]
mov dword [ebp - 4], 3
jmp 0x4856ee
lea eax, [ebp - 0xc20]
mov dword [ebp - fcn.00485890], vtable.std::_Func_impl_no_alloc_class__lambda_eeeab3b59fa57678978ebd84f0d4cb1c___void___.0
mov dword [ebp - 0xc1c], edi
mov dword [ebp - 0xbfc], eax
lea eax, [ebp - 0xbcc]
mov dword [ebp - 0xba8], 0
mov dword [ebp - 0xbd0], eax
push eax
lea ecx, [ebp - 0xc20]
mov byte [ebp - 4], 5
call fcn.00485890
mov ecx, dword [ebp - 0xbfc]
mov dword [ebp - 0xba8], eax
test ecx, ecx
je 0x4855a1
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xc20]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0xbfc], 0
push 0x218
lea eax, [ebp - 0x758]
push 0
push eax
call fcn.004c14d0
lea eax, [ebp - 0xb78]
push eax
push str.___s
lea eax, [ebp - 0x758]
push 0x104
push eax
call fcn.0043c990
add esp, 0x1c
lea eax, [ebp - 0x758]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push 0x220
movzx esi, ax
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.004c14d0
xor eax, eax
mov dword [ebp - 0x230], 0xa0000003
mov word [ebp - 0x228], ax
lea eax, [esi + 2]
mov word [ebp - 0x224], ax
xor eax, eax
mov word [ebp - 0x222], ax
lea eax, [esi + 0xc]
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x758]
push esi
push eax
lea eax, [ebp - 0x220]
mov word [ebp - 0x226], si
push eax
call fcn.004c0f50
add esp, 0x18
mov dword [ebp - 0xb7c], 0
lea eax, [ebp - 0xb7c]
push 0
push eax
movzx eax, word [ebp - 0x22c]
push 0
push 0
add eax, 8
push eax
lea eax, [ebp - 0x230]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [ebp - 0xb80]
mov ebx, eax
test ebx, ebx
je 0x4856a5
test ecx, ecx
je 0x4856a5
mov edx, dword [ecx]
lea eax, [ebp - 0xba4]
cmp ecx, eax
setne al
push eax
call dword [edx + 0x10]
xor ecx, ecx
mov dword [ebp - 0xb80], ecx
mov edx, dword [ebp - 0xba8]
mov byte [ebp - 4], 6
test edx, edx
je 0x4856e7
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 8]
mov ecx, dword [ebp - 0xba8]
test ecx, ecx
je 0x4856e1
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xbcc]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0xba8], 0
mov ecx, dword [ebp - 0xb80]
mov dword [ebp - 4], 7
test ecx, ecx
je 0x485715
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0xb80]
test ecx, ecx
je 0x485715
mov edx, dword [ecx]
lea eax, [ebp - 0xba4]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045fbca
mov esp, ebp
pop ebp
ret 8