Function at 0x488790
Capabilities:
Get disk information
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4bc506
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebp, dword [esp + 0x44c]
push 0
push 0
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490828
add esp, 4
mov ebx, eax
push ebx
push esi
mov dword [esp + 0x28], ebx
call edi
push 0
push 0x4c3af8
mov ecx, ebp
mov edi, eax
mov esi, ebx
call fcn.00401fa0
test edi, edi
je 0x4888aa
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea esp, [esp]
push esi
call edi
sub eax, 2
jne 0x488888
push 0x104
lea eax, [esp + 0x28]
push eax
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x104
lea edx, [esp + 0x244]
push edx
push esi
call ebx
test eax, eax
je 0x488888
test esi, esi
jne 0x488867
xor eax, eax
jmp 0x48887f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x488870
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, ebp
call fcn.00401fa0
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x488890
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x488830
mov eax, dword [ebp]
mov eax, dword [eax - 0xc]
xor ecx, ecx
test eax, eax
setne cl
push ecx
mov ecx, dword [0x4ee750]
push str.USB_CONNECTED
call fcn.0046c980
mov eax, dword [ebp]
mov ecx, dword [0x4ee750]
push eax
push str.USB_DRIVEROOT
call fcn.0046cab0
push str.PRINTER_STATUS
call fcn.0046ccd0
mov esi, eax
test esi, esi
je 0x488901
push esi
call fcn.0049e31d
push esi
mov edi, eax
call fcn.0049081d
add esp, 8
test edi, edi
jne 0x48893b
mov edx, dword [ebp]
cmp dword [edx - 0xc], 0
je 0x48898e
mov ecx, dword [0x4ee750]
push 8
push str.PRINTER_STATUS
call fcn.0046c980
mov ecx, dword [0x4ee750]
push 1
push str.SEND_ENABLED
call fcn.0046c980
push 0
push str.CAN_PRINT
jmp 0x488983
push str.PRINTER_STATUS
call fcn.0046ccd0
mov esi, eax
test esi, esi
je 0x48898e
push esi
call fcn.0049e31d
push esi
mov edi, eax
call fcn.0049081d
add esp, 8
cmp edi, 8
jne 0x48898e
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jne 0x48898e
mov ecx, dword [0x4ee750]
push 0
push str.PRINTER_STATUS
call fcn.0046c980
push 0
push str.SEND_ENABLED
mov ecx, dword [0x4ee750]
call fcn.0046c980
push str.USB_DRIVEROOT
call fcn.0046ccd0
mov esi, eax
or edi, 0xffffffff
test esi, esi
je 0x488a51
lea edx, [eax + 2]
jmp 0x4889b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4889b0
sub eax, edx
sar eax, 1
je 0x488a51
push esi
lea ecx, [esp + 0x1c]
call fcn.004019b0
push str.SauvenSettings.stn
lea ecx, [esp + 0x1c]
mov dword [esp + 0x448], 0
call fcn.00401ad0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [0x4ee750]
cmp eax, edi
je 0x488a0d
push 1
push str.IMPORT_SETTINGS
call fcn.0046c980
push 1
jmp 0x488a1b
push 0
push str.IMPORT_SETTINGS
call fcn.0046c980
push 0
mov ecx, dword [0x4ee750]
push str.IMPORT_SETTINGS_AVAIL
call fcn.0046c980
mov dword [esp + 0x444], edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x488a51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.0049081d
add esp, 4
push 0x4c3af6
lea ecx, [esp + 0x20]
call fcn.00408080
mov dword [esp + 0x444], 1
mov eax, dword [eax]
push 0
mov ebx, 0x12
call fcn.0040dea0
mov dword [esp + 0x444], edi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x488aa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0049081d
add esp, 4
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0049dc2a
add esp, 0x434
ret 4