Function at 0x4de750
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5666c6
mov eax, dword fs:[0]
push eax
mov eax, 0x1438
call fcn.00541260
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x1434], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x144c]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x284]
push 0x14b
push eax
call ebp
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x2c], 0x200
mov edi, 0x41
mov dword [esp + 0x18], 0x1a
push edi
lea ecx, [esp + 0x34]
push str._C:_
push ecx
call fcn.00409b20
add esp, 0xc
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
xor eax, eax
mov word [esp + 0x58], ax
cmp dword [0x5ed6ec], eax
je 0x4de839
test ebx, ebx
je 0x4de803
cmp ebx, 1
je 0x4de803
cmp ebx, 4
jne 0x4de842
push edi
lea eax, [esp + 0x48]
push 0x586b88
push eax
call fcn.00409b20
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x4c]
push eax
call sub.MPR.dll_WNetGetConnectionW
mov ax, word [esp + 0x58]
test ax, ax
jne 0x4de842
jmp 0x4de8f0
cmp ebx, 1
je 0x4de8f0
xor ecx, ecx
mov word [esp + 0x868], cx
test ax, ax
je 0x4de86d
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x86c]
push 0x208
push eax
call fcn.0054013c
add esp, 0xc
jmp 0x4de8aa
cmp ebx, 5
je 0x4de8aa
cmp ebx, 2
je 0x4de8aa
cmp dword [0x5ed6ec], 0
jne 0x4de885
cmp ebx, 4
je 0x4de8aa
mov edx, dword [esp + 0x24]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push edx
lea eax, [esp + 0x880]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea edx, [esp + 0x868]
push edx
push edi
lea eax, [esp + 0xc80]
push str.__C:___s
push eax
call fcn.004d6560
mov edx, dword [esi + 0x284]
add esp, 0x10
lea ecx, [esp + 0xc78]
push ecx
push 0
push 0x143
push edx
call ebp
push edi
push eax
mov eax, dword [esi + 0x284]
push 0x151
push eax
call ebp
inc edi
sub dword [esp + 0x18], 1
jne 0x4de7c6
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea ecx, [esp + 0x14]
push ecx
push 0x10
push eax
mov dword [esp + 0x20], 0
call ebx
mov edi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x458]
neg edi
push edx
sbb edi, edi
push eax
inc edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4de95d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
je 0x4de99c
lea eax, [esp + 0x458]
push 0x5c
push eax
call fcn.00540fb2
add esp, 8
test eax, eax
je 0x4de99c
mov ecx, dword [esi + 0x284]
add eax, 2
push eax
push 0
push 0x143
push ecx
call ebp
mov edx, dword [esi + 0x284]
push 0
push eax
push 0x151
push edx
call ebp
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push 5
push eax
mov dword [esp + 0x2c], 0
call ebx
mov edi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x458]
neg edi
push edx
sbb edi, edi
push eax
inc edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4de9f7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
je 0x4dea36
lea eax, [esp + 0x458]
push 0x5c
push eax
call fcn.00540fb2
add esp, 8
test eax, eax
je 0x4dea36
mov ecx, dword [esi + 0x284]
add eax, 2
push eax
push 0
push 0x143
push ecx
call ebp
mov edx, dword [esi + 0x284]
push 1
push eax
push 0x151
push edx
call ebp
call fcn.0050830c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4dea50
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x54f0
mov dword [esp + 0x1458], 0
call fcn.00508284
test eax, eax
je 0x4dea8c
push 0x54f0
push eax
lea ecx, [esp + 0x1c]
call fcn.00401da0
mov edi, dword [esp + 0x14]
call fcn.0050830c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4deaa6
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x5f83
mov byte [esp + 0x1458], 1
call fcn.00508284
test eax, eax
je 0x4deadb
push 0x5f83
push eax
lea ecx, [esp + 0x20]
call fcn.00401da0
mov edx, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
lea ebx, [edx + 1]
sub eax, ebx
or eax, ecx
mov dword [esp + 0x1c], edx
jge 0x4deb08
push ebx
lea ecx, [esp + 0x18]
call fcn.00401c00
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, 0x2f
mov word [edi + edx*2], cx
test ebx, ebx
jl 0x4decff
cmp ebx, dword [edi - 8]
jg 0x4decff
mov ecx, dword [esp + 0x18]
mov dword [edi - 0xc], ebx
xor edx, edx
mov word [edi + ebx*2], dx
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401fe0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x284]
push eax
xor ebx, ebx
push ebx
push 0x143
push ecx
call ebp
mov edx, dword [esi + 0x284]
push 3
push eax
push 0x151
push edx
call ebp
push 0x5476
call fcn.00508284
cmp eax, ebx
je 0x4deb81
push 0x5476
push eax
lea ecx, [esp + 0x1c]
call fcn.00401da0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x284]
push eax
push ebx
push 0x143
push ecx
call ebp
mov edx, dword [esi + 0x284]
push 2
push eax
push 0x151
push edx
call ebp
push 0x54f4
call fcn.00508284
cmp eax, ebx
je 0x4debc3
push 0x54f4
push eax
lea ecx, [esp + 0x1c]
call fcn.00401da0
push 3
push 0x57c450
lea ecx, [esp + 0x1c]
call fcn.00401fe0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x284]
push eax
push ebx
push 0x143
push ecx
call ebp
mov edx, dword [esi + 0x284]
push 4
push eax
push 0x151
push edx
call ebp
mov eax, dword [esi + 0x840]
cmp dword [eax*4 + 0x5b8f80], ebx
jle 0x4dec84
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x840]
mov ecx, dword [eax*4 + 0x5b8fa8]
mov edx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [ecx + edx + 0x7c]
imul edi, edi, 0x3e8
push eax
add edi, ebx
push edi
lea ecx, [esp + 0xc80]
push str._ftp_02d___s
push ecx
call fcn.004d6560
mov eax, dword [esi + 0x284]
add esp, 0x10
lea edx, [esp + 0xc78]
push edx
push 0
push 0x143
push eax
call ebp
mov ecx, dword [esi + 0x284]
add edi, 0x64
push edi
push eax
push 0x151
push ecx
call ebp
mov edx, dword [esi + 0x840]
add dword [esp + 0x1c], 0x1ef8
inc ebx
cmp ebx, dword [edx*4 + 0x5b8f80]
jl 0x4dec0b
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x1454], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4decac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x1454], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4decd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x144c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1434]
xor ecx, esp
call fcn.0053fa67
add esp, 0x1444
ret
push 0x80070057
call fcn.00401350
int3