Function at 0x4859d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3c09
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x541100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
or ebx, 0xffffffff
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x18]
call fcn.00423475
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00489b00
add esp, 4
test eax, eax
je 0x485b84
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x485ac8
lea eax, [ebx + 3]
lea esi, [ebp - 0x1c]
call fcn.00485840
push ecx
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
push eax
push str.SandboxCfg_GetFileFlags__s_:_special_case__Prog_repository___returning__s
push ecx
call fcn.004777e0
add esp, 0x10
call fcn.00481910
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485a92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x485ab1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x485b58
lea esi, [ebp - 0x1c]
call fcn.00485840
push ecx
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
push eax
push str.SandboxCfg_GetFileFlags__s_:_special_case__Data_repository___returning__s
push ecx
call fcn.004777e0
add esp, 0x10
call fcn.00481910
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485b22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x485b41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jne 0x485b84
mov eax, 1
lea esi, [ebp - 0x1c]
call fcn.00485840
push ecx
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x24], esp
push edx
push eax
push str.SandboxCfg_GetFileFlags__s_:_special_case__BaseDir___returning__s
jmp 0x485aef
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x485b9e
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, str.Content.IE5index.dat
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x485bd9
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
test eax, eax
je 0x485bf4
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00422eb3
jmp 0x485bf4
push str.Content.IE5index.dat
call fcn.004ccd1a
add esp, 4
push eax
push str.Content.IE5index.dat
lea ecx, [ebp - 0x14]
call fcn.00423404
mov byte [ebp - 4], 5
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x485c12
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov ecx, str.Cookiesindex.dat
mov byte [ebp - 4], 6
test ecx, 0xffff0000
jne 0x485c4d
mov edx, ecx
movzx esi, dx
push esi
call fcn.004c5d7f
test eax, eax
je 0x485c6b
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00422eb3
jmp 0x485c68
push str.Cookiesindex.dat
call fcn.004ccd1a
add esp, 4
push eax
push str.Cookiesindex.dat
lea ecx, [ebp - 0x18]
call fcn.00423404
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp + 8]
call fcn.004229cf
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
push edx
mov ebx, 1
push eax
mov dword [ebp - 0x1c], ebx
call fcn.004cca64
add esp, 8
test eax, eax
je 0x485cf1
mov eax, dword [edi - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.004229cf
mov eax, dword [eax]
push edi
push eax
mov ebx, 3
call fcn.004cca64
add esp, 8
test eax, eax
je 0x485cf1
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x485ceb
push str.History.IE5_
push eax
call fcn.004ccea1
add esp, 8
test eax, eax
je 0x485ceb
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, 0xffffffff
jne 0x485cf1
mov byte [ebp - 0xd], 0
jmp 0x485cf5
mov byte [ebp - 0xd], 1
test bl, 2
je 0x485d1f
mov eax, dword [ebp - 0x20]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x1c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485d1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 7
test bl, 1
je 0x485d4a
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485d4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x485e0d
mov eax, 1
lea esi, [ebp - 0x24]
call fcn.00485840
push ecx
mov byte [ebp - 4], 9
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
push eax
push str.SandboxCfg_GetFileFlags__s_:_special_case__index.dat___returning__s
push ecx
call fcn.004777e0
add esp, 0x10
call fcn.00481910
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485dab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485dcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485dee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x485b35
cmp dword [ebp + 0xc], 0
je 0x485e68
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
add esp, 4
lea edi, [ebp - 0x24]
mov dword [esi], eax
call fcn.00489780
add esp, 4
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.00422f41
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485e68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x546f74], 0
je 0x485f8c
mov edx, dword [ebp + 8]
mov eax, dword [edx - 0xc]
cmp eax, 2
jl 0x485f8c
cmp eax, 1
jge 0x485e93
push 0x80070057
call fcn.00420000
movzx ecx, word [edx + 2]
cmp cx, 0x5f
jne 0x485f8c
test eax, eax
jge 0x485eaf
push 0x80070057
call fcn.00420000
movzx eax, word [edx]
movzx ecx, ax
push ecx
mov edx, esp
mov dword [ebp - 0x24], esp
push ecx
push str.About_to_GetDriveType__c:_
push edx
call fcn.004777e0
add esp, 0xc
call fcn.00481910
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [eax - 0xc], 0
jge 0x485ee5
push 0x80070057
call fcn.00420000
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x24]
push 0x504824
push ecx
call fcn.004777e0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485f24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 2
jne 0x485f8c
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jge 0x485f3c
push 0x80070057
call fcn.00420000
movzx eax, word [eax]
movzx ecx, ax
push ecx
lea edx, [ebp - 0x24]
push 0x51e324
push edx
call fcn.004777e0
add esp, 0xc
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
push str._RemovableDrives_
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042994b
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485f8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x50057c
call fcn.00422827
mov byte [ebp - 4], 0xc
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.FILES
mov byte [ebp - 4], 0xd
call fcn.00422827
lea edi, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004770a0
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.00422f41
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486009
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 8]
call fcn.004858a0
mov esi, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486036
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486059
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48607f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret