Function at 0x4329e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccf66
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4fd0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
push dword [eax]
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
lea ecx, [ebp - 0x224]
call fcn.00431d30
mov edi, dword [ebx + 4]
mov esi, eax
cmp edi, esi
je 0x432a5b
mov ecx, edi
call fcn.00432fd0
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.00432fd0
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x238], eax
cmp esi, eax
je 0x432c6c
nop dword [eax]
push 0x4ed88c
mov edx, esi
lea ecx, [ebp - 0x230]
call fcn.004330b0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x432a9d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov edx, dword [ebp - 0x21c]
mov edi, eax
cmp edx, 8
jb 0x432ae6
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432adc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432c88
push edx
push ecx
call fcn.0047917e
add esp, 8
cmp edi, 4
jne 0x432c5d
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x234], 0x104
jb 0x432b03
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 0x432c5d
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432b40
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0042da40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
mov edi, dword [ebx + 8]
push ecx
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x432b88
mov ecx, eax
call fcn.00430b60
add dword [edi + 4], 0x18
jmp 0x432b90
push eax
mov ecx, edi
call fcn.00433ac0
mov eax, dword [ebx]
lea ecx, [ebp - 0x250]
mov eax, dword [eax]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x230]
push eax
call fcn.00430b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
mov edi, dword [ebx + 0xc]
push ecx
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x432bd2
mov edx, eax
call fcn.004337c0
add esp, 4
add dword [edi + 4], 8
jmp 0x432bda
push eax
mov ecx, edi
call fcn.004338d0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x432c1a
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432c10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432c88
push edx
push ecx
call fcn.0047917e
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x432c5d
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432c53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432c88
push edx
push ecx
call fcn.0047917e
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x238]
jne 0x432a80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047913d
mov esp, ebp
pop ebp
ret
call fcn.0049a999
int3