Function at 0x442270
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dfa4
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x110], eax
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 4], 0
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.004058b0
add eax, 0x10
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 2
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x442810
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x4423f5
push 0x3f
push eax
call fcn.00453d23
mov esi, eax
add esp, 8
test esi, esi
je 0x4423f5
sub esi, dword [edi]
sar esi, 1
test esi, esi
jle 0x4423f5
push esi
push 0
lea eax, [ebp - 0xe0]
mov ecx, edi
push eax
call fcn.0041b830
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe8]
push eax
call fcn.00405ad0
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0xe0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x442389
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xe0]
push eax
call fcn.0041b830
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe4], 2
push eax
lea ecx, [ebp - 0x100]
call fcn.00405ad0
mov esi, 2
mov dword [ebp - 0xe4], esi
and esi, 0xfffffffd
mov dword [ebp - 0xe4], esi
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0xe0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4423f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5c
push dword [ebp - 0xe8]
call fcn.00453f2b
mov ecx, dword [ebp - 0xe8]
add esp, 8
test eax, eax
je 0x442419
sub eax, ecx
sar eax, 1
jns 0x4424f2
mov esi, 0x4916a0
nop
movzx eax, word [esi]
push eax
push ecx
call fcn.00453f2b
mov ecx, dword [ebp - 0xe8]
add esp, 8
test eax, eax
je 0x442441
sub eax, ecx
sar eax, 1
jns 0x4424f2
add esi, 2
cmp esi, 0x4916a6
jl 0x442420
mov byte [ebp - 4], 9
lea eax, [ebp - 0xdc]
or dword [ebp - 0xe4], 1
push eax
push 0x64
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
xor esi, esi
nop dword [eax + eax]
lea edi, [ebp - 0xdc]
lea edi, [edi + esi*2]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4425f8
call fcn.00403270
test eax, eax
je 0x442810
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 0xa
test edi, edi
je 0x4425b1
test edi, 0xffff0000
jne 0x442595
movzx eax, di
lea ecx, [ebp - 0xe0]
push eax
call fcn.00404b50
jmp 0x4425c0
push edi
lea ecx, [ebp - 0xf4]
call fcn.0041b690
mov dword [ebp - 0xfc], 0
mov byte [ebp - 0xf8], 0
mov byte [ebp - 4], 0x10
mov ebx, dword [ebp + 0xc]
test bl, bl
je 0x44253e
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0xf8]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov byte [ebp - 0xf8], cl
mov eax, dword [ebp - 0xf0]
xor esi, esi
mov edi, eax
test edi, edi
jle 0x442769
test esi, esi
js 0x44281a
cmp esi, eax
jge 0x44281a
mov eax, dword [ebp - 0xf4]
push dword [ebp - 0x110]
mov ecx, dword [ebp - 0x114]
push ebx
lea eax, [eax + esi*4]
push eax
call fcn.00442830
test eax, eax
je 0x442765
inc esi
cmp esi, edi
jge 0x442769
mov eax, dword [ebp - 0xf0]
jmp 0x442550
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4425a0
sub ecx, edx
sar ecx, 1
jmp 0x4425b3
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0xe0]
call fcn.00404e30
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x120]
call fcn.0041b690
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0xe0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4425f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, ebx
jae 0x442610
nop dword [eax]
cmp word [ebp + esi*2 - 0xdc], 0
je 0x442610
inc esi
cmp esi, ebx
jb 0x442600
inc esi
cmp esi, ebx
jb 0x442490
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00435550
and dword [ebp - 0xe4], 0xfffffffe
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x120]
call fcn.0041b5f0
mov eax, dword [ebp - 0xf0]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x10c], ecx
test ecx, ecx
jle 0x4424fe
nop dword [eax]
test esi, esi
js 0x44281a
cmp esi, eax
jge 0x44281a
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + esi*4]
sub ecx, 0x10
call fcn.004058b0
add eax, 0x10
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xe0]
mov eax, dword [ebp - 0xe8]
push dword [eax - 0xc]
push eax
call fcn.00404870
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0xe0]
push dword [eax - 0xc]
push eax
call fcn.00404870
cmp esi, dword [ebp - 0xf0]
jge 0x44281a
mov eax, dword [ebp - 0xf4]
mov edi, dword [eax + esi*4]
lea edx, [eax + esi*4]
mov eax, dword [ebp - 0xe0]
sub edi, 0x10
mov dword [ebp - 0x108], edx
lea ebx, [eax - 0x10]
cmp ebx, edi
je 0x442734
cmp dword [edi + 0xc], 0
jl 0x442729
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x442729
mov ecx, ebx
call fcn.004058b0
mov dword [ebp - 0x104], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44271c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x108]
add eax, 0x10
mov dword [ecx], eax
jmp 0x442734
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.00404e30
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x44274d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x10c]
jge 0x4424fe
mov eax, dword [ebp - 0xf0]
jmp 0x442660
xor esi, esi
jmp 0x44276e
mov esi, 1
mov byte [ebp - 4], 4
cmp byte [ebp - 0xf8], 0
je 0x44279b
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0xf8]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0xf8], cl
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x100]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4427bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xe8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4427de
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.0041b5f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00452869
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00402f30
push 1
push 0xc000008c
call fcn.004134e0
int3