Function at 0x402667
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x499020]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x34
mov eax, 0x471be2
call fcn.0045ccb3
mov edi, dword [ebp + 0x110]
mov esi, ecx
call fcn.00445c91
push eax
lea ecx, [ebp - 0x10]
call fcn.00401815
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00445c91
push eax
lea ecx, [ebp - 0x14]
call fcn.00401815
mov byte [ebp - 4], 1
call fcn.00445c91
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401815
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0044641a
mov byte [ebp - 4], 3
cmp edi, dword [esi + 0x33c]
jne 0x402723
push ebx
push edi
mov ecx, esi
call fcn.004015aa
lea edi, [esi + 0x340]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
jmp 0x40271a
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push dword [esi + 0x33c]
mov ecx, esi
push edi
call fcn.00401ad6
push edi
call fcn.0045c620
pop ecx
lea edi, [edi + eax + 1]
cmp byte [edi], bl
jne 0x4026fb
jmp 0x402978
push edi
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], esp
mov ecx, esp
push eax
call fcn.00401c44
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004021f0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401fcd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040135b
push ebx
push edi
mov ecx, esi
call fcn.004015aa
push 0x477af8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402096
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00401fcd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040135b
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.004464af
cmp eax, ebx
je 0x402860
lea ecx, [ebp - 0x40]
call fcn.00446100
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x40]
push 0x10
lea ecx, [ebp - 0x40]
call dword [eax + 0x38]
test eax, eax
je 0x402857
lea ecx, [ebp - 0x40]
call fcn.004463df
test eax, eax
jne 0x402857
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.004466e9
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00401fcd
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040135b
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.0045c0f0
lea eax, [ebp]
push str.RECYCLED
push eax
call fcn.0046dbad
add esp, 0x10
test eax, eax
je 0x402857
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040203f
add esp, 0xc
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push edi
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00401ad6
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040135b
cmp dword [ebp - 0x18], ebx
jne 0x4027a8
lea ecx, [ebp - 0x40]
cmp dword [esi + 0x128], ebx
jne 0x40297b
push ebx
push dword [ebp - 0x1c]
call fcn.004464af
cmp eax, ebx
je 0x402978
lea ecx, [ebp - 0x40]
call fcn.00446100
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x40]
push 0x10
lea ecx, [ebp - 0x40]
call dword [eax + 0x38]
test eax, eax
jne 0x40296f
lea ecx, [ebp - 0x40]
call fcn.004463df
test eax, eax
jne 0x40296f
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
call fcn.004466e9
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00401fcd
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040135b
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.0045c0f0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
pop ecx
pop ecx
cmp dword [esi + 0x54], ebx
je 0x402938
cmp eax, 4
jle 0x40296f
push dword [esi + 0x12c]
lea eax, [ebp + eax - 4]
push eax
call fcn.0046dbad
pop ecx
pop ecx
test eax, eax
jne 0x40296f
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402096
add esp, 0xc
mov eax, dword [eax]
push 0xffffffffffffffff
push dword [esi + 0x58]
mov ecx, esi
push ebx
push edi
push eax
mov byte [ebp - 4], 9
call fcn.00401ad6
mov ecx, dword [ebp - 0x20]
jmp 0x402963
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402096
add esp, 0xc
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push edi
push eax
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.00401ad6
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040135b
cmp dword [ebp - 0x18], ebx
jne 0x402880
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00446440
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040135b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040135b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040135b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0045c0da
add ebp, 0x108
leave
ret 4