Function at 0x45d631
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
lea eax, [ebp + 8]
push esi
push eax
mov dword [ebp - 0x18], ecx
call fcn.004379a9
pop ecx
push 5
lea ecx, [ebp - 0x14]
call fcn.0043d49b
push 0x14
lea ecx, [ebp - 0x1c]
call fcn.0043d49b
mov byte [ebp - 3], 1
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov byte [ebp - 4], 0
jmp 0x45d7a7
or esi, 0xffffffff
push esi
lea eax, [ebp + 8]
push eax
push str.__fullfile
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x45d691
mov byte [ebp - 3], 2
jmp 0x45d7a7
push esi
lea eax, [ebp + 8]
push eax
push str.__full
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x45d6b0
mov byte [ebp - 3], 1
jmp 0x45d7a7
push esi
lea eax, [ebp + 8]
push eax
push str.__short
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x45d6cf
mov byte [ebp - 1], 1
jmp 0x45d7a7
push esi
lea eax, [ebp + 8]
push eax
push 0x4ad244
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x45d6ee
mov byte [ebp - 1], 0x11
jmp 0x45d7a7
push esi
lea eax, [ebp + 8]
push eax
push str.__long
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x45d70d
mov byte [ebp - 1], 2
jmp 0x45d7a7
push esi
lea eax, [ebp + 8]
push eax
push 0x4ad234
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x45d729
mov byte [ebp - 1], 0x12
jmp 0x45d7a7
push 8
lea eax, [ebp + 8]
push eax
push str.__volume
call fcn.00437a52
add esp, 0xc
test eax, eax
je 0x45d746
mov byte [ebp - 2], 1
jmp 0x45d7a7
push 0xc
lea eax, [ebp + 8]
push eax
push str.__volumepart
call fcn.00437a52
add esp, 0xc
test eax, eax
je 0x45d763
mov byte [ebp - 2], 3
jmp 0x45d7a7
push 6
lea eax, [ebp + 8]
push eax
push str.__part
call fcn.00437a52
add esp, 0xc
test eax, eax
je 0x45d780
mov byte [ebp - 2], 2
jmp 0x45d7a7
push 3
lea eax, [ebp + 8]
push eax
push 0x4ad1ec
call fcn.00437a52
add esp, 0xc
test eax, eax
je 0x45d79d
mov byte [ebp - 4], 1
jmp 0x45d7a7
lea eax, [ebp + 8]
push eax
call fcn.0040507c
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x45d66f
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
push ebx
push 0x3d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043317e
mov dword [ebp + 8], eax
cmp word [eax], 0x3d
jne 0x45d7e9
mov ecx, dword [ebp - 0x18]
inc eax
inc eax
push ebx
mov dword [ebp + 8], eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00433065
mov eax, dword [ebp - 0x1c]
call fcn.0044228c
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
mov dword [ebp - 0x20], esi
je 0x45da48
cmp word [esi], bx
je 0x45da48
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push esi
lea ecx, [ebp - 0x10]
lea edi, [eax*8 + 0x104]
call fcn.004457e4
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043d4c2
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 0x20]
mov dword [ebp - 8], ebx
call fcn.0043dbbd
add esp, 0x10
cmp dword [ebp - 8], ebx
je 0x45d84f
sub dword [ebp - 8], 2
cmp byte [ebp - 1], 0
jle 0x45d90c
push 0x2000
lea ecx, [ebp - 0xc]
call fcn.0043d49b
mov edi, dword [ebp - 0xc]
mov eax, 0x4beb4c
push eax
mov word [edi], bx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], ebx
call fcn.00403cf6
test byte [ebp - 1], 1
pop ecx
mov byte [ebp - 0x20], al
je 0x45d89d
push 0x1fff
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
jmp 0x45d8b4
test byte [ebp - 1], 2
je 0x45d8c1
push 0x1fff
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
and byte [ebp - 1], 0xfd
test byte [ebp - 1], 0x10
je 0x45d89d
cmp word [edi], bx
jne 0x45d89d
jmp 0x45d8e5
cmp byte [ebp - 3], 1
mov eax, esi
mov esi, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
mov word [esi + 0x3ffc], bx
jne 0x45d8e5
push 0x5c
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov dword [ebp - 8], eax
cmp byte [ebp - 0x20], 0
je 0x45d8f4
push dword [ebp - 0x24]
call fcn.00403d07
pop ecx
mov eax, 0x4beb4c
cmp eax, ebx
je 0x45d904
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea ecx, [ebp - 0xc]
call fcn.00437960
cmp byte [ebp - 3], 1
jne 0x45d91c
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x45d91c
mov word [eax], bx
cmp byte [ebp - 2], 0
je 0x45da03
cmp word [esi], bx
je 0x45da03
cmp word [esi + 2], 0x3a
jne 0x45da03
mov ebx, 0x1000
push ebx
lea ecx, [ebp - 0xc]
call fcn.0043d49b
mov edi, dword [ebp - 0xc]
xor eax, eax
test byte [ebp - 2], 1
mov word [edi], ax
mov cx, word [esi]
mov word [ebp - 0x2c], cx
mov word [ebp - 0x2a], 0x3a
mov word [ebp - 0x28], 0x5c
mov word [ebp - 0x26], ax
mov dword [ebp - 0x20], edi
mov word [esi], ax
je 0x45d98b
push ebx
push edi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x45d989
cmp word [edi], 0
jne 0x45d9d7
xor eax, eax
test byte [ebp - 2], 2
je 0x45d9f9
mov cx, word [ebp - 0x2c]
push eax
push eax
push eax
push 0xac
mov word [edi], cx
push 0xffffffffffffffff
mov word [edi + 2], ax
lea eax, [ebp - 0xc]
push 0xffffffffffffffff
push eax
call fcn.004585df
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
add esp, 0x1c
test eax, eax
jl 0x45d9f9
mov ecx, dword [edi + 4]
test ecx, ecx
jle 0x45d9f9
push ecx
push eax
push str._Harddisk_uPartition_u_
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [esi + 6]
push ecx
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov eax, esi
mov esi, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
call fcn.00437960
xor ebx, ebx
cmp byte [ebp - 4], 0
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], ebx
pop edi
je 0x45da28
cmp word [esi], 0x22
je 0x45da28
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004422aa
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0043cd78
lea ecx, [ebp - 0x20]
call fcn.00437960
lea ecx, [ebp - 0x10]
call fcn.00437960
jmp 0x45da4d
mov ebx, 0x80070057
lea ecx, [ebp - 0x1c]
call fcn.00437960
lea ecx, [ebp - 0x14]
call fcn.00437960
pop esi
mov eax, ebx
pop ebx
leave
ret 8