Function at 0x402147
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409275
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4224ec]
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 - 0x10], esp
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x248], eax
push eax
lea ecx, [ebp - 0x224]
call fcn.00405c40
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x224]
mov esi, dword [edx - 0xc]
cmp esi, ebx
jge 0x4021a9
push 0x80070057
call fcn.00414b7b
mov ecx, 1
sub ecx, dword [edx - 4]
mov eax, dword [edx - 8]
sub eax, esi
or eax, ecx
jge 0x4021cc
push esi
lea ecx, [ebp - 0x224]
call fcn.0040a55a
mov edx, dword [ebp - 0x224]
lea eax, [esi + 1]
push eax
push edx
call fcn.0040522b
add esp, 8
mov eax, dword [ebp - 0x224]
cmp esi, dword [eax - 8]
jg 0x40219f
mov dword [eax - 0xc], esi
xor ecx, ecx
mov edx, dword [ebp - 0x224]
mov word [edx + esi*2], cx
lea ecx, [ebp - 0x254]
call fcn.004106cf
mov byte [ebp - 4], 1
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 2
xor edi, edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
push 0x63
push 0xbbb
lea eax, [ebp - 0x234]
push eax
call fcn.00410e8f
add esp, 0xc
mov ecx, dword [0x423b8c]
sub ecx, dword [0x423b88]
jne 0x40229b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.00416c71
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.00416c71
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x254]
call fcn.0040e8b6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00410a50
jmp 0x4023fb
push 0x6c
sub esp, 0x10
mov dword [ebp - 0x258], esp
mov ecx, esp
call fcn.00418874
mov byte [ebp - 4], 5
mov eax, dword [0x423b88]
push eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x254]
call fcn.0040338f
mov esi, eax
cmp esi, ebx
je 0x402258
call dword [sym.imp.USER32.dll_GetFocus]
push 1
call dword [sym.imp.USER32.dll_GetSysColor]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esi + 4]
add eax, 0x71a60
push eax
push fcn.004043b9
call fcn.0040d63c
xor edx, edx
mov word [ebp - 0x220], dx
push 0x208
push ebx
lea eax, [ebp - 0x21e]
push eax
call fcn.004145dc
add esp, 0x14
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40234a
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004043b9
mov dword [ebp - 4], 3
jmp 0x402378
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x402389
push edi
call fcn.0040e16b
add esp, 4
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x244]
cmp eax, ebx
je 0x4023b2
push eax
call fcn.0040e16b
add esp, 4
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x254]
call fcn.0040e8b6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
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.0040e15c
mov esp, ebp
pop ebp
ret 0x10