Function at 0x415380
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b170
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1818
call fcn.00428ae0
mov eax, dword [0x4a90d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1824], 0
mov dword [ebp - 0x1828], ebx
mov eax, dword [ebx]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x47d42c]
mov ecx, ebx
call esi
cmp dword [ebx + 0x9ad0], 0
mov dword [ebp - 0x181c], 0xffffffff
je 0x4153f8
call fcn.00418160
mov dword [ebp - 0x181c], eax
cmp dword [ebx + 0x9aec], 0
jne 0x41540a
cmp dword [ebx + 0x9ae4], 0
je 0x415411
mov ecx, ebx
call fcn.00417080
push 0x800
lea eax, [ebp - 0x1814]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00416d60
lea ecx, [ebp - 0x1814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415434
sub ecx, edx
sar ecx, 1
jne 0x41545b
lea eax, [ebp - 0x1814]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ecx, eax
jmp 0x415465
mov dword [ebp - 0x1824], 1
test ecx, ecx
je 0x4156ad
xor eax, eax
mov dword [ebp - 0x1818], eax
cmp dword [ebx + 0x9afc], eax
je 0x4154f0
push str.LocksmithLib.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4ac0c8], eax
test eax, eax
jne 0x41549f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_load_Locksmith_library._Error:__d_n
jmp 0x4154c0
push str.CheckFileExportFunction
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ac0c4], eax
test eax, eax
jne 0x4154ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_load_API_from_Locksmith_library._Error:__d_n
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.0040b5a0
mov eax, dword [ebx]
lea ecx, [ebp - 0x814]
add esp, 0x10
mov esi, dword [eax + 4]
push ecx
push 2
mov ecx, esi
call dword [0x47d42c]
mov ecx, ebx
call esi
xor eax, eax
cmp dword [ebx + 0x1a30], 0
jne 0x415653
lea esi, [ebp - 0x1814]
cmp word [esi + eax*2], 0
lea esi, [esi + eax*2]
je 0x415653
call fcn.00401750
movzx ecx, word [esi]
push ecx
mov dword [ebp - 0x1820], eax
mov edx, dword [eax]
mov edi, dword [edx + 0x1c]
mov ecx, edi
call dword [0x47d42c]
mov ecx, dword [ebp - 0x1820]
call edi
mov ecx, eax
mov edx, 1
shl edx, cl
test dword [ebx + 0x9ac8], edx
jne 0x415566
cmp dword [ebp - 0x1824], 0
je 0x41562b
cmp ecx, 4
je 0x415566
cmp ecx, 2
je 0x415566
cmp ecx, 1
jne 0x41562b
push esi
call fcn.004151c0
add esp, 4
test eax, eax
jne 0x41562b
mov eax, dword [ebx]
push esi
mov edi, dword [eax + 0x3c]
mov ecx, edi
call dword [0x47d42c]
mov ecx, ebx
call edi
push esi
call fcn.00415800
lea ecx, [ebp - 0x1814]
add esp, 4
mov edx, eax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4155a0
sub ecx, edi
lea eax, [edx + 1]
sar ecx, 1
mov edx, 2
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x1820], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00428fea
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x4155f4
mov ecx, dword [ebp - 0x1818]
mov eax, str._UNC
lea ecx, [ebp + ecx*2 - 0x1812]
jmp 0x4155fb
mov eax, str.__
mov ecx, esi
push ecx
push eax
push 0x481dc0
push dword [ebp - 0x1820]
push edi
call fcn.0040b560
push dword [ebp - 0x181c]
push edi
push ebx
call fcn.00415820
add esp, 0x20
test edi, edi
je 0x41562b
push edi
call fcn.00428a5e
add esp, 4
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x415630
mov eax, dword [ebp - 0x1818]
sub esi, ecx
sar esi, 1
inc eax
add eax, esi
mov dword [ebp - 0x1818], eax
jmp 0x4154f0
mov eax, dword [0x4ac0c8]
test eax, eax
je 0x4156ad
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x4156a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_unload_Locksmith_library._Error:___d_n
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.0040b5a0
mov eax, dword [ebx]
lea ecx, [ebp - 0x814]
add esp, 0x10
mov esi, dword [eax + 4]
push ecx
push 2
mov ecx, esi
call dword [0x47d42c]
mov ecx, ebx
call esi
jmp 0x4156ad
mov dword [0x4ac0c8], 0
cmp dword [ebx + 0x1a30], 0
mov esi, dword [ebx]
je 0x4156bd
mov esi, dword [esi + 0x28]
jmp 0x4156c0
mov esi, dword [esi + 0x24]
mov ecx, esi
call dword [0x47d42c]
mov ecx, ebx
call esi
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x47d42c]
mov ecx, ebx
call esi
jmp 0x415702
mov eax, dword [ebp - 0x181c]
cmp eax, 0xffffffff
je 0x415714
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x9ac4], 0
je 0x415722
call fcn.00439b4c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00428a63
mov esp, ebp
pop ebp
ret