Function at 0x411fd0
Capabilities:
Get disk information
Get disk size
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x2734
call fcn.00418d50
mov eax, dword [0x44dd94]
xor eax, esp
mov dword [esp + 0x2730], eax
mov eax, dword [esp + 0x2738]
push ebx
push ebp
mov ebp, dword [esp + 0x274c]
push esi
mov esi, dword [esp + 0x275c]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x2750]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
cmp dword [esi + 0x10], ebx
je 0x412038
mov ecx, dword [esp + 0x2764]
push ecx
push edi
call fcn.00402db0
add esp, 8
test eax, eax
je 0x412079
push edi
call fcn.00411e10
add esp, 4
test eax, eax
je 0x412081
cmp dword [esp + 0x2764], ebx
jne 0x412079
cmp dword [0x476724], ebx
jne 0x412079
mov edx, dword [0x476720]
push 0x10
push edx
push str.VOL_ALREADY_MOUNTED
call fcn.00414100
add esp, 4
push eax
mov eax, dword [0x47671c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
jmp 0x412b63
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [esp + 0x274c]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4120b7
cmp dword [esp + 0x2764], ebx
jne 0x4120af
push str.DRIVE_LETTER_UNAVAILABLE
call fcn.0040f500
add esp, 4
or eax, 0xffffffff
jmp 0x412b63
cmp ebp, ebx
jne 0x4120c8
call fcn.0040ef00
test eax, eax
jne 0x4128ad
push 0x2e0
lea eax, [esp + 0x128]
push ebx
push eax
call fcn.004188d0
mov edx, dword [0x47676c]
mov eax, dword [esi + 0x5c]
xor ecx, ecx
add esp, 0xc
cmp dword [esp + 0x275c], ebx
mov dword [esp + 0x3ac], edx
sete cl
mov dword [esp + 0x3fc], eax
mov dword [esp + 0x398], ecx
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x400], ecx
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x274c]
mov eax, dword [esp + 0x2758]
mov dword [esp + 0x388], edx
mov dword [esp + 0x384], eax
mov dword [esp + 0x3a4], ebx
cmp esi, ebx
je 0x41214d
mov ecx, 0x12
lea edi, [esp + 0x33c]
rep movsd dword es:[edi], dword [esi]
jmp 0x412154
mov dword [esp + 0x33c], ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
cmp eax, ebx
jne 0x412181
cmp dword [edx + 8], ebx
je 0x412181
lea esi, [edx + 0x14]
mov ecx, 0x12
lea edi, [esp + 0x3b4]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x3b0], 1
jmp 0x412188
mov dword [esp + 0x3b0], ebx
cmp dword [0x476740], 5
mov ecx, dword [edx + 4]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x390], eax
mov dword [esp + 0x394], ecx
mov dword [esp + 0x3a0], edx
mov dword [esp + 0x39c], 1
jne 0x4121c6
cmp dword [0x476744], ebx
jne 0x4121c6
mov dword [esp + 0x39c], ebx
mov esi, dword [esp + 0x10]
mov ebp, 0xf
mov eax, esi
mov dword [esp + 0x104], ebp
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4121f0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0xf4]
call fcn.00401ba0
push 4
push ebx
push 0x436514
lea ecx, [esp + 0xf8]
call fcn.004011f0
test eax, eax
jne 0x412290
push 0xffffffffffffffff
push 4
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xf8]
call fcn.00402110
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xf8]
call fcn.004019c0
mov edi, 0x10
cmp dword [esp + 0x5c], edi
jb 0x41225c
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00417d54
add esp, 4
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x104], edi
jae 0x41227f
lea eax, [esp + 0xf0]
push eax
push 0x104
push esi
call fcn.004190b3
add esp, 0xc
jmp 0x412295
mov edi, 0x10
push 7
push ebx
push 0x435374
lea ecx, [esp + 0xf8]
call fcn.004011f0
test eax, eax
jne 0x412367
push 2
push 0xffffffffffffffff
push 0x435398
lea ecx, [esp + 0xf8]
call fcn.004012b0
mov edx, dword [esp + 0x100]
add edx, 0xfffffffe
cmp eax, edx
jne 0x412367
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x110]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004019c0
lea ecx, [esp + 0x124]
push ecx
call fcn.00411ad0
add esp, 0x20
cmp dword [esp + 0x11c], ebx
je 0x412339
mov eax, dword [esp + 0x10c]
cmp dword [esp + 0x120], edi
jae 0x41232a
lea eax, [esp + 0x10c]
push eax
push 0x104
push esi
call fcn.004190b3
add esp, 0xc
cmp dword [esp + 0x120], edi
jb 0x412352
mov edx, dword [esp + 0x10c]
push edx
call fcn.00417d54
add esp, 4
mov dword [esp + 0x120], ebp
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
lea eax, [esp + 0x30]
push eax
mov ecx, esi
push ecx
lea edx, [esp + 0x13c]
push edx
call fcn.0040ebb0
mov ebp, dword [esp + 0x3c]
add esp, 0xc
cmp ebp, ebx
jne 0x4124ce
push 2
push ebx
push 0x43537c
lea ecx, [esp + 0xf8]
call fcn.004011f0
test eax, eax
jne 0x41244c
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xf8]
call fcn.00402110
push eax
lea ecx, [esp + 0x80]
push 0x4366b0
push ecx
call fcn.00405070
mov esi, 0x10
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x4123e1
mov eax, dword [eax + 4]
jmp 0x4123e4
add eax, 4
push eax
lea edx, [esp + 0x138]
push 0x104
push edx
call fcn.004190b3
add esp, 0xc
cmp dword [esp + 0x94], esi
jb 0x412413
mov eax, dword [esp + 0x80]
push eax
call fcn.00417d54
add esp, 4
mov edi, 0xf
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x78], esi
jb 0x412440
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00417d54
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov eax, dword [esp + 0x10]
push 0x103
lea edx, [esp + 0x640]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
test eax, eax
je 0x4124ce
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x64c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x412493
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38c], eax
cmp dword [esp + 0x390], ebx
jne 0x4124ce
push ebx
push ebx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4124ce
mov ecx, dword [esp + 0x2c]
shr ecx, 0x13
and ecx, 1
mov dword [esp + 0x390], ecx
lea edx, [esp + 0x134]
push edx
call fcn.0040ec80
mov eax, dword [esp + 0x20]
add esp, 4
cmp dword [eax + 0x10], ebx
je 0x412516
push 4
lea ecx, [esp + 0x3ac]
push ecx
lea edx, [esp + 0x13c]
push str.DeviceHarddisk_dPartition
push edx
call fcn.0041bb67
add esp, 0x10
cmp eax, 1
jne 0x4126ef
mov dword [esp + 0x3a4], eax
push ebx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [0x44bf9c]
push 0x2e0
lea ecx, [esp + 0x130]
push ecx
push 0x2e0
mov edx, ecx
push edx
push 0x22200c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea esi, [esp + 0x33c]
mov edx, 0x48
mov edi, edx
mov ecx, esi
mov byte [ecx], bl
inc ecx
sub edi, 1
jne 0x412552
lea ebx, [ebx]
dec edx
mov byte [esi], bl
inc esi
cmp edx, ebx
jne 0x412560
lea esi, [esp + 0x3b4]
mov edx, 0x48
mov edi, edx
mov ecx, esi
mov byte [ecx], bl
inc ecx
sub edi, 1
jne 0x412578
mov edi, 1
sub edx, edi
mov byte [esi], bl
add esi, edi
cmp edx, ebx
jne 0x412585
cmp eax, ebx
jne 0x412668
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x20
jne 0x412703
cmp dword [0x476770], ebx
je 0x4125ed
mov eax, dword [esp + 0x20]
add eax, edi
cmp eax, 0xa
mov dword [esp + 0x20], eax
jge 0x4125ed
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x104], 0x10
jb 0x412112
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.00417d54
add esp, 4
jmp 0x412112
cmp dword [esp + 0x398], ebx
je 0x4126d9
cmp dword [esp + 0x2764], ebx
jne 0x41263e
cmp dword [0x476724], ebx
jne 0x4126ef
mov eax, dword [0x476720]
push 0x134
push eax
push str.FILE_IN_USE
call fcn.00414100
mov ecx, dword [0x47671c]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4126ef
cmp dword [esp + 0x104], 0x10
mov dword [esp + 0x398], ebx
jb 0x412112
mov edx, dword [esp + 0xf0]
push edx
call fcn.00417d54
add esp, 4
jmp 0x412112
mov eax, dword [esp + 0x124]
cmp eax, ebx
je 0x4128c5
cmp eax, 3
jne 0x4128b4
cmp dword [esp + 0x2768], ebx
je 0x4128a1
mov eax, dword [0x4767a8]
add eax, edi
cmp eax, 2
mov dword [0x4767a8], eax
jle 0x41273c
cmp dword [esp + 0x3fc], ebx
jne 0x41273c
cmp dword [esp + 0x104], 0x10
mov dword [esp + 0x3fc], edi
jb 0x412112
mov eax, dword [esp + 0xf0]
push eax
call fcn.00417d54
add esp, 4
jmp 0x412112
cmp dword [esp + 0x2764], ebx
jne 0x4126ef
push str.FILE_IN_USE_FAILED
call fcn.0040f500
add esp, 4
lea ecx, [esp + 0xec]
call fcn.00401870
or eax, 0xffffffff
jmp 0x412b63
cmp dword [esp + 0x2764], ebx
jne 0x412728
cmp dword [0x476774], ebx
je 0x41271b
call esi
cmp eax, 0x15
je 0x412728
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040f840
add esp, 4
lea ecx, [esp + 0xec]
call fcn.00401870
or eax, 0xffffffff
jmp 0x412b63
cmp ebp, ebx
je 0x412892
cmp dword [esp + 0x3b0], ebx
je 0x412892
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
push 0x435404
push eax
call fcn.00418d29
add esp, 0xc
cmp eax, edi
jne 0x4128a1
push 0x218
lea ecx, [esp + 0x408]
push ebx
push ecx
call fcn.004188d0
mov edx, dword [esp + 0x40]
push edx
push str.DeviceHarddisk_dPartition0
lea eax, [esp + 0x418]
push 0x104
push eax
mov dword [esp + 0x628], edi
call fcn.004197f4
add esp, 0x1c
push ebx
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [0x44bf9c]
push 0x218
lea edx, [esp + 0x410]
push edx
push 0x218
mov eax, edx
push eax
push 0x222034
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412883
cmp dword [esp + 0x610], ebx
je 0x412883
push str.HIDDEN_VOL_PROT_PASSWORD_US_KEYB_LAYOUT
call fcn.00414100
mov edx, dword [esp + 0x18]
add esp, 4
push eax
push 0x435380
push edx
lea eax, [esp + 0xc0]
push eax
call fcn.00411060
add esp, 8
push eax
lea ecx, [esp + 0xdc]
push ecx
call fcn.00402270
add esp, 0xc
push eax
lea edx, [esp + 0xa0]
push edx
call fcn.00402270
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x412840
mov eax, dword [eax + 4]
jmp 0x412843
add eax, 4
push eax
call fcn.0040f4d0
add esp, 4
lea ecx, [esp + 0x98]
call fcn.004018a0
lea ecx, [esp + 0xd0]
call fcn.004018a0
lea ecx, [esp + 0xb4]
call fcn.004018a0
lea ecx, [esp + 0xec]
call fcn.00401870
xor eax, eax
jmp 0x412b63
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x14]
push eax
push ecx
jmp 0x412899
mov edx, dword [esp + 0x14]
push 3
push edx
call fcn.004112b0
add esp, 8
lea ecx, [esp + 0xec]
call fcn.00401870
xor eax, eax
jmp 0x412b63
cmp dword [esp + 0x2764], ebx
jne 0x4128a1
push eax
mov eax, dword [esp + 0x18]
push eax
jmp 0x412899
mov eax, dword [esp + 0x3fc]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x5c]
je 0x4128f7
cmp eax, ebx
je 0x4128f7
cmp dword [esp + 0x2768], ebx
je 0x4128f7
cmp dword [0x476724], ebx
jne 0x4128f7
push str.HEADER_DAMAGED_AUTO_USED_HEADER_BAK
call fcn.0040f4a0
add esp, 4
mov eax, dword [esp + 0x128]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esp + 0x274c]
mov dword [0x4531c4], eax
cmp eax, ebx
je 0x412976
lea edx, [edi + 0x41]
mov word [esp + 0x634], dx
lea edx, [esp + 0x634]
push edx
mov eax, 0x3a
xor ecx, ecx
push str.MOUNTED_VOLUME_DIRTY
mov word [esp + 0x63e], ax
mov word [esp + 0x640], cx
call fcn.00414100
add esp, 4
push eax
lea eax, [esp + 0x748]
push eax
call esi
lea ecx, [esp + 0x74c]
push ecx
call fcn.0040f570
add esp, 0x10
cmp eax, 6
jne 0x412976
push 1
push edi
call fcn.004104f0
add esp, 8
cmp dword [esp + 0x12c], ebx
je 0x412a68
cmp dword [0x476724], ebx
jne 0x412a01
cmp ebp, ebx
jne 0x412a01
mov edx, dword [esp + 0x10]
push edx
call fcn.0040f790
add esp, 4
test eax, eax
jne 0x412a01
mov eax, dword [esp + 0x10]
push eax
call fcn.0040f7b0
add esp, 4
test eax, eax
jne 0x412a01
lea ecx, [edi + 0x41]
mov word [esp + 0x624], cx
lea ecx, [esp + 0x624]
push ecx
mov edx, 0x3a
push str.MOUNTED_CONTAINER_FORCED_READ_ONLY
mov word [esp + 0x62e], dx
mov word [esp + 0x630], ax
call fcn.00414100
add esp, 4
push eax
lea edx, [esp + 0x1748]
push edx
call esi
lea eax, [esp + 0x174c]
push eax
call fcn.0040f4d0
add esp, 0x10
cmp dword [esp + 0x12c], ebx
je 0x412a68
cmp dword [0x476724], ebx
jne 0x412a68
cmp ebp, ebx
je 0x412a68
lea ecx, [edi + 0x41]
mov word [esp + 0x61c], cx
lea ecx, [esp + 0x61c]
push ecx
mov edx, 0x3a
xor eax, eax
push str.MOUNTED_DEVICE_FORCED_READ_ONLY
mov word [esp + 0x626], dx
mov word [esp + 0x628], ax
call fcn.00414100
add esp, 4
push eax
lea edx, [esp + 0xf48]
push edx
call esi
lea eax, [esp + 0xf4c]
push eax
call fcn.0040f4d0
add esp, 0x10
cmp dword [esp + 0x130], ebx
je 0x412b28
cmp dword [0x476724], ebx
jne 0x412b28
mov ebp, dword [esp + 0x10]
push str.DeviceHarddisk
push ebp
call fcn.0041aa10
add esp, 8
cmp eax, ebp
jne 0x412b28
lea ecx, [edi + 0x41]
mov word [esp + 0x62c], cx
lea ecx, [esp + 0x62c]
push ecx
mov edx, 0x3a
xor eax, eax
push str.MOUNTED_DEVICE_FORCED_READ_ONLY_WRITE_PROTECTION
mov word [esp + 0x636], dx
mov word [esp + 0x638], ax
call fcn.00414100
add esp, 4
push eax
lea edx, [esp + 0x1f48]
push edx
call esi
lea eax, [esp + 0x1f4c]
push eax
call fcn.0040f4d0
add esp, 0x10
cmp dword [0x476740], 6
jl 0x412b28
push str.DeviceHarddiskVolume
push ebp
call fcn.0041aa10
add esp, 8
cmp eax, ebp
je 0x412b28
push str.ASK_REMOVE_DEVICE_WRITE_PROTECTION
call fcn.0040f530
add esp, 4
cmp eax, 6
jne 0x412b28
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call fcn.00410610
add esp, 8
push ebx
push edi
push 0x8000
mov dword [0x4767a8], ebx
call fcn.0040ff80
add esp, 0xc
lea ecx, [esp + 0xec]
cmp dword [esp + 0x398], ebx
jne 0x412b59
call fcn.00401870
mov eax, 2
jmp 0x412b63
call fcn.00401870
mov eax, 1
mov ecx, dword [esp + 0x2740]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041851b
add esp, 0x2734
ret