Function at 0x485634
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x34
push 0
push 0
dec ecx
jne 0x48563d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x174]
mov edx, dword [0x407a94]
call fcn.00404ed4
xor eax, eax
push ebp
push 0x485a5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3d4], 0
je 0x485a1e
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 8]
call fcn.0040878c
mov eax, dword [ebp - 0x178]
push eax
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
call fcn.0040878c
mov eax, dword [ebp - 0x17c]
pop edx
call fcn.00404b48
test eax, eax
jne 0x485a1e
lea edx, [ebp - 0x180]
mov eax, dword [ebp - 8]
call fcn.0040878c
mov edx, dword [ebp - 0x180]
mov eax, 0x485a74
call fcn.00404b48
test eax, eax
jne 0x485a1e
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 8]
call fcn.0040878c
mov edx, dword [ebp - 0x184]
mov eax, 0x485a84
call fcn.00404b48
test eax, eax
jne 0x485a1e
mov dl, 1
mov eax, dword [0x417340]
call fcn.004036c4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x485a17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, 0x485aa8
call fcn.00404950
jne 0x48576e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.0043dc24
push eax
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 8]
mov edx, 0x485ab8
call fcn.00404850
mov edx, dword [ebp - 0x188]
pop eax
call fcn.0043db80
mov eax, dword [0x48c3fc]
mov eax, dword [eax]
call fcn.0047a82c
lea eax, [ebp - 0x18c]
mov ecx, 0x485ad4
mov edx, dword [ebp - 8]
call fcn.00404850
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x174]
mov edx, 0x12
call fcn.004091d0
mov ebx, eax
test ebx, ebx
jne 0x485806
mov eax, dword [ebp - 0x16c]
and eax, 0x10
cmp eax, 0x10
jne 0x4857e9
mov eax, dword [ebp - 0x168]
mov edx, 0x485ae0
call fcn.00404950
je 0x4857e9
mov eax, dword [ebp - 0x168]
mov edx, 0x485aec
call fcn.00404950
je 0x4857e9
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x174]
call fcn.00409220
mov ebx, eax
mov eax, dword [0x48c3fc]
mov eax, dword [eax]
call fcn.0047a82c
test ebx, ebx
je 0x4857a9
lea eax, [ebp - 0x174]
call fcn.00409244
lea eax, [ebp - 0x190]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404850
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x174]
mov edx, 0x46
call fcn.004091d0
mov ebx, eax
test ebx, ebx
jne 0x485978
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3d4], 0
je 0x485978
cmp dword [ebp + 8], 3
jne 0x485957
xor eax, eax
push ebp
push 0x48594d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x198]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 8]
call fcn.00404850
mov eax, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
call fcn.004851e4
mov eax, dword [ebp - 0x194]
mov ecx, 3
mov edx, 1
call fcn.00404a64
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x18]
call fcn.00404a04
mov esi, eax
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x4858cc
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 1
jne 0x48592c
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0x5c
je 0x48592c
lea eax, [ebp - 0x19c]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 8]
call fcn.00404850
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x1c]
call fcn.004851e4
mov eax, dword [ebp - 0x1c]
mov edx, 0x485af8
call fcn.00404950
je 0x48592c
cmp dword [ebp - 0x1c], 0
je 0x485927
mov eax, dword [ebp - 0x1c]
call fcn.00409130
test al, al
jne 0x485927
mov eax, dword [ebp - 0x1c]
call fcn.0047c364
test al, al
jne 0x485927
xor eax, eax
jmp 0x485929
mov al, 1
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x485943
lea ecx, [ebp - 0x174]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004854d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x485957
lea eax, [ebp - 0x174]
call fcn.00409220
mov ebx, eax
mov eax, dword [0x48c3fc]
mov eax, dword [eax]
call fcn.0047a82c
test ebx, ebx
je 0x485842
lea eax, [ebp - 0x174]
call fcn.00409244
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x485a01
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x1a0]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 0x1a0], 0
je 0x4859f1
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 8]
lea ecx, [ebp - 0x1a8]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x1a8]
push 0x485b04
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.004048c4
mov edx, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00485634
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3d4], 0
je 0x485a01
inc ebx
dec esi
jne 0x485995
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485a1e
mov eax, dword [ebp - 0x10]
call fcn.004036f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485a61
lea eax, [ebp - 0x1a8]
mov edx, 0xd
call fcn.00404568
lea eax, [ebp - 0x174]
mov edx, dword [0x407a94]
call fcn.00404fa4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404568
ret