Function at 0x42cbd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4c9100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov eax, dword [edi]
push dword [eax]
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
lea ecx, [ebp - 0x224]
call fcn.0042bff0
mov edi, dword [edi + 4]
mov esi, eax
cmp edi, esi
je 0x42cc50
mov ecx, edi
call fcn.0042d3d0
mov ecx, dword [esi]
mov dword [edi], ecx
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x224]
call fcn.0042d3d0
mov ecx, dword [ebp - 0x238]
mov eax, dword [ecx + 4]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x23c], eax
cmp esi, eax
je 0x42cea8
nop word [eax + eax]
mov ecx, dword [esi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x42cec3
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x42cc9d
mov eax, dword [esi]
push 1
push 0x4bf434
push ecx
push eax
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
call fcn.0042a7e0
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov ecx, dword [ebp - 0x21c]
mov edi, eax
cmp ecx, 7
jbe 0x42cd15
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42cd0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42cec8
push ecx
push edx
call fcn.004615bb
add esp, 8
cmp edi, 4
jne 0x42ce99
cmp dword [esi + 0x14], 7
mov eax, esi
mov dword [ebp - 0x234], 0x104
jbe 0x42cd32
mov eax, dword [esi]
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x42ce99
mov dword [ebp - 0x220], eax
xorps xmm0, xmm0
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
movups xmmword [ebp - 0x230], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cd70
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00429760
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
push ecx
mov edi, dword [eax + 8]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x42cdbe
mov ecx, eax
call fcn.0042d320
add dword [edi + 4], 0x18
jmp 0x42cdc6
push eax
mov ecx, edi
call fcn.0042e280
mov edi, dword [ebp - 0x238]
lea ecx, [ebp - 0x254]
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x230]
push eax
call fcn.0042d320
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
mov edi, dword [edi + 0xc]
push ecx
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x42ce0e
mov edx, eax
call fcn.0042e720
add esp, 4
add dword [edi + 4], 8
jmp 0x42ce16
push eax
mov ecx, edi
call fcn.0042e070
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x240]
cmp ecx, 7
jbe 0x42ce56
mov edx, dword [ebp - 0x254]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42ce4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42cec8
push ecx
push edx
call fcn.004615bb
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x42ce99
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42ce8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42cec8
push ecx
push edx
call fcn.004615bb
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x23c]
jne 0x42cc80
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.0046157d
mov esp, ebp
pop ebp
ret
call fcn.00422c60
call fcn.0048347f
int3