Function at 0x420030
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad7a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [esi + 0x230]
mov edi, ecx
mov dword [ebp - 0x30], edi
test eax, eax
je 0x420293
lea ebx, [eax + 0x78]
call fcn.00420a20
mov ebx, edi
call fcn.00420830
mov ebx, eax
call fcn.004208b0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4200a6
lea eax, [esi + 0x248]
push 0x4bd1a8
push eax
mov ebx, 8
call fcn.00402030
jmp 0x420293
add eax, 0xfffffff0
call fcn.004046f0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
cmp dword [ebx - 4], 1
jle 0x4200d1
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004021c0
mov ebx, dword [ebp - 0x28]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004923b5
add esp, 8
test eax, eax
js 0x42039d
cmp eax, dword [ebx - 8]
jg 0x42039d
xor edx, edx
mov dword [ebx - 0xc], eax
push ebx
mov word [ebx + eax*2], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x420147
lea edi, [esi + 0x248]
mov edx, 0x4bd1bc
call fcn.004020e0
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x420293
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.00402120
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx - 0xc]
test eax, eax
js 0x4201c3
push 0x4bd1d4
push ecx
call fcn.00493f13
mov ecx, dword [ebp - 0x24]
add esp, 8
test eax, eax
je 0x4201c3
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4201c3
lea edi, [esi + 0x248]
mov edx, 0x4bd1dc
call fcn.004020e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42011b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42011b
mov dword [ebp - 0x20], 0x3a002f
mov dword [ebp - 0x1c], 0x3f002a
mov dword [ebp - 0x18], 0x3c0022
mov dword [ebp - 0x14], 0x7c003e
xor edi, edi
cmp dword [ecx - 0xc], 0
movzx eax, word [ebp + edi*2 - 0x20]
jle 0x42020a
push eax
push ecx
call fcn.0049271d
mov ecx, dword [ebp - 0x24]
add esp, 8
test eax, eax
je 0x42020a
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4202b0
inc edi
cmp edi, 8
jb 0x4201e1
lea ecx, [ebp - 0x2c]
push ecx
push ecx
add ebx, 0xfffffff0
mov eax, ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], esp
mov edi, esp
call fcn.004046f0
add eax, 0x10
mov dword [edi], eax
call fcn.00422250
add esp, 8
test eax, eax
jne 0x4202dc
lea edi, [esi + 0x248]
mov edx, 0x4bd210
call fcn.004020e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420273
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420293
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x248]
mov edx, 0x4bd1f8
call fcn.004020e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4201ae
cmp dword [ebp - 0x2c], 0x64
jge 0x42030e
lea edi, [esi + 0x248]
mov edx, 0x4bd228
call fcn.004020e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x420267
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0x100
jle 0x420341
lea edi, [esi + 0x248]
mov edx, 0x4bd248
call fcn.004020e0
lea ecx, [ebp - 0x24]
call fcn.00401d40
lea ecx, [ebp - 0x28]
call fcn.00401d40
jmp 0x420293
mov eax, ebx
lea edi, [ebp - 0x28]
call fcn.00404600
mov edi, dword [ebp - 0x28]
cmp dword [edi - 4], 1
jle 0x420364
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.004021c0
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push ebx
mov ecx, edi
call fcn.00401c20
test eax, eax
jne 0x420383
mov edx, 0x4bd17c
mov eax, ebx
call fcn.0040a4e0
lea ecx, [ebp - 0x24]
call fcn.00401d40
lea ecx, [ebp - 0x28]
call fcn.00401d40
mov eax, 1
jmp 0x420295
push 0x80070057
call fcn.00402bc0
int3