Function at 0x482660
Capabilities:
Get common file path
Get disk information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d07b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x5c7216], 0
je 0x482a05
xor eax, eax
mov byte [0x5c7216], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0x4000
push 0x5707ec
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x48297a
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x250]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482702
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24c]
call fcn.00408740
push dword [ebp - 0x250]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ax, word [0x56b94c]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x238], 8
movups xmm0, xmmword [0x56b93c]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push 9
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
call fcn.004263eb
add esp, 0xc
test eax, eax
je 0x4829e7
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push 2
cmovae eax, dword [ebp - 0x24c]
push 0x56b950
push eax
call fcn.004263eb
mov ecx, dword [ebp - 0x238]
add esp, 0xc
mov edx, dword [ebp - 0x24c]
test eax, eax
jne 0x4827be
cmp dword [ebp - 0x23c], 3
jbe 0x4827be
cmp ecx, 8
lea eax, [ebp - 0x24c]
cmovae eax, edx
cmp word [eax + 4], 0x3f
jne 0x4829e7
cmp ecx, 8
lea eax, [ebp - 0x24c]
push 8
cmovae eax, edx
push str._UNC_
push eax
call fcn.004263eb
add esp, 0xc
test eax, eax
je 0x4829e7
mov esi, dword [ebp - 0x238]
lea edx, [ebp - 0x24c]
mov edi, dword [ebp - 0x24c]
cmp esi, 8
mov eax, dword [ebp - 0x23c]
cmovae edx, edi
test eax, eax
je 0x4829ee
mov ecx, edx
nop word [eax + eax]
cmp word [ecx], 0x3a
je 0x48282e
add ecx, 2
sub eax, 1
jne 0x482810
lea ecx, [ebp - 0x24c]
call fcn.00408e50
jmp 0x482a05
test ecx, ecx
je 0x4829ee
sub ecx, edx
sar ecx, 1
je 0x4829ee
cmp ecx, 0xffffffff
je 0x4829ee
cmp ecx, 1
jbe 0x482866
cmp esi, 8
lea eax, [ebp - 0x24c]
cmovae eax, edi
cmp word [eax + ecx*2 - 4], 0x5c
jne 0x4829ee
cmp esi, 8
lea eax, [ebp - 0x24c]
cmovae eax, edi
add ecx, ecx
mov dword [ebp - 0x254], ecx
movzx eax, word [ecx + eax - 2]
cmp eax, 0x61
jb 0x482889
cmp eax, 0x7a
jbe 0x482896
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x4829ee
push 0x208
lea eax, [ebp - 0x234]
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x18], xmm0
call fcn.005290f0
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x24c]
add esp, 0xc
cmp esi, 8
cmovae eax, edi
add ecx, 0xfffffffe
add eax, ecx
je 0x4829be
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x234]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x4829ee
cmp eax, 0x104
je 0x4829ee
mov dword [ebp - 0x26c], str.DeviceMup_
xor esi, esi
mov dword [ebp - 0x268], str.DeviceLanmanRedirector_
mov dword [ebp - 0x264], str.DeviceWebDavRedirector_
mov dword [ebp - 0x260], str.DeviceWinDfs_
mov dword [ebp - 0x25c], str.DeviceNetWareRedirector_
mov dword [ebp - 0x258], str.Device_nwrdr_
nop
mov edx, dword [ebp + esi*4 - 0x26c]
mov eax, edx
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x482950
sub eax, edi
sar eax, 1
push eax
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.004263eb
add esp, 0xc
test eax, eax
je 0x4829b5
inc esi
cmp esi, 6
jb 0x482940
mov edx, dword [ebp - 0x238]
mov dword [ebp - 4], 1
cmp edx, 8
jb 0x482a05
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4829fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x482a25
jmp 0x4829fb
mov byte [0x5cb4b0], 1
jmp 0x48297a
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
test eax, eax
jne 0x4829da
call fcn.00411120
mov dword [eax], 0x16
call fcn.0052cad1
lea ecx, [ebp - 0x24c]
call fcn.00408e50
jmp 0x482a05
mov byte [0x5cb4b0], 1
lea ecx, [ebp - 0x24c]
call fcn.00408e50
jmp 0x482a05
push edx
push ecx
call fcn.004097e6
add esp, 8
mov al, byte [0x5cb4b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
call fcn.0052cae1
int3