Function at 0x45ede9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov ebx, eax
xor eax, eax
push edi
mov edx, 0x4060e0
mov esi, ebx
mov edi, eax
call fcn.0045db8b
test al, al
je 0x45f1a3
mov ecx, dword [ebx + 0x28]
xor edx, edx
test ecx, ecx
je 0x45ee21
xor eax, eax
cmp word [ecx], dx
setne al
jmp 0x45ee23
mov eax, edx
test al, al
je 0x45f1a3
push ecx
call fcn.00464701
mov esi, eax
test esi, esi
je 0x45efe2
mov ecx, 0x424740
mov edx, esi
call fcn.004636a0
test al, al
jne 0x45ee5f
mov ecx, 0x424748
mov edx, esi
call fcn.004636a0
test al, al
je 0x45efe2
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], ax
lea esi, [ebx + 0x28]
lea eax, [ebp - 0x20]
call fcn.0046377b
lea ecx, [ebp - 0x2c]
call fcn.004636d2
mov eax, dword [esi]
movzx eax, word [eax]
push 0x5c
pop ecx
mov dword [ebp - 4], eax
cmp cx, ax
jne 0x45ee95
mov dword [ebp - 4], 0x42
lea eax, [ebp - 0x2c]
mov esi, ebx
call fcn.0045d705
mov edi, eax
test edi, edi
js 0x45efd2
call fcn.0045d74c
mov edi, eax
test edi, edi
js 0x45efd2
lea ecx, [ebp - 0x14]
call fcn.004636d2
lea eax, [ebp - 0x14]
push eax
xor edx, edx
push edx
mov ecx, ebx
call fcn.0045d352
mov edi, eax
test edi, edi
js 0x45efca
push dword [ebp - 0x14]
call fcn.0045ed68
test eax, eax
je 0x45ef0c
push dword [ebp - 0x20]
push ebx
call fcn.0045dbee
lea eax, [ebp - 0x14]
call fcn.00463afc
lea eax, [ebp - 0x2c]
call fcn.00463afc
lea eax, [ebp - 0x20]
call fcn.00463afc
xor eax, eax
jmp 0x45f1a5
push 4
push 0x424750
lea eax, [ebp - 0x2c]
or esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.00464104
test eax, eax
jne 0x45ef6c
mov edi, dword [ebp - 0x2c]
add edi, 8
movzx eax, word [edi]
push eax
call dword [sym.imp.msvcrt.dll_iswdigit]
pop ecx
test eax, eax
je 0x45ef6c
lea ecx, [ebp - 0x38]
call fcn.004636d2
push edi
or eax, esi
lea edi, [ebp - 0x38]
call fcn.004637f0
test eax, eax
js 0x45ef64
cmp dword [ebp - 0x38], 0
je 0x45ef60
push dword [ebp - 0x38]
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
jmp 0x45ef62
xor eax, eax
mov esi, eax
lea eax, [ebp - 0x38]
call fcn.00463afc
lea ecx, [ebp - 0x38]
call fcn.004636d2
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
lea edx, [ebp - 0x38]
movzx eax, ax
cmp esi, reloc.ADVAPI32.dll_TraceMessage
je 0x45ef9b
push esi
push eax
push 0x40607c
push 0x42475c
call fcn.00463c2d
add esp, 0x14
jmp 0x45efae
push eax
push 0x40607c
push 0x424790
call fcn.00463c2d
add esp, 0x10
mov edi, eax
test edi, edi
js 0x45efc2
push dword [ebp - 0x38]
mov ecx, ebx
push 1
call fcn.0045d420
mov edi, eax
lea eax, [ebp - 0x38]
call fcn.00463afc
lea eax, [ebp - 0x14]
call fcn.00463afc
lea eax, [ebp - 0x2c]
call fcn.00463afc
lea eax, [ebp - 0x20]
jmp 0x45f19e
mov eax, ebx
call fcn.0045d4f7
cmp eax, 4
jne 0x45f12c
mov edx, dword [ebx + 0x28]
call fcn.00464853
test al, al
je 0x45f12c
lea ecx, [ebp - 0x2c]
call fcn.004636d2
lea ecx, [ebp - 0x14]
call fcn.004636d2
lea esi, [ebx + 0x28]
push dword [esi]
lea edi, [ebp - 0x2c]
push 2
pop eax
call fcn.004637f0
mov edi, eax
test edi, edi
js 0x45f11f
mov ecx, 0x104
lea eax, [ebp - 0x14]
push eax
mov eax, ecx
mov dword [ebp - 4], ecx
call fcn.004637a7
mov edi, eax
test edi, edi
js 0x45f11f
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call dword [sym.imp.MPR.dll_WNetGetConnectionW]
cmp eax, 0xea
jne 0x45f08e
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.004637a7
mov edi, eax
test edi, edi
js 0x45f11f
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call dword [sym.imp.MPR.dll_WNetGetConnectionW]
mov edi, eax
test edi, edi
jle 0x45f0fe
jmp 0x45f0bf
test eax, eax
je 0x45f0fc
mov edi, dword [ebp - 0x14]
mov eax, 0x104
push eax
push edi
push dword [ebp - 0x2c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x45f0cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x45f0bd
push 0x57
pop edi
test edi, edi
jle 0x45f0fc
and edi, 0xffff
or edi, 0x80070000
jmp 0x45f0fc
push 0x4247bc
lea esi, [ebp - 0x14]
call fcn.00464009
test eax, eax
jne 0x45f0f4
lea eax, [edi + 0xe]
push eax
push 0x423ee8
mov edx, esi
call fcn.00463c2d
pop ecx
pop ecx
mov edi, eax
jmp 0x45f0f9
mov edi, 0xc00d1327
lea esi, [ebx + 0x28]
test edi, edi
js 0x45f11f
mov eax, dword [esi]
add eax, 4
push eax
lea edi, [ebp - 0x14]
call fcn.004639dd
mov edi, eax
test edi, edi
js 0x45f11f
push dword [ebp - 0x14]
push ebx
call fcn.0045dbee
mov edi, eax
lea eax, [ebp - 0x14]
call fcn.00463afc
lea eax, [ebp - 0x2c]
jmp 0x45f19e
test esi, esi
je 0x45f1a3
mov ecx, 0x4247cc
mov edx, esi
call fcn.004636a0
test al, al
je 0x45f1a3
mov edi, dword [ebx + 0x28]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0045f232
mov edi, eax
test edi, edi
js 0x45f1a3
push 0x4060a8
lea edi, [ebx + 0x1c]
or eax, reloc.ADVAPI32.dll_TraceMessage
call fcn.004637f0
mov edi, eax
test edi, edi
js 0x45f1a3
lea ecx, [ebp - 0x38]
call fcn.004636d2
push dword [ebp - 4]
lea edx, [ebp - 0x38]
push dword [ebp - 8]
push 0x4247d4
call fcn.00463c2d
mov edi, eax
add esp, 0xc
test edi, edi
js 0x45f19b
push dword [ebp - 0x38]
push ebx
call fcn.0045dbee
mov edi, eax
lea eax, [ebp - 0x38]
call fcn.00463afc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret