Function at 0x406700
Capabilities:
Create thread
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x18], 0
xor edi, edi
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
shl eax, 2
push eax
push 8
push dword [0x42b230]
mov dword [ebp - 0x14], eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40676b
mov edi, dword [ebp - 0x14]
nop dword [eax]
push 0x80
call esi
push edi
push 8
push dword [0x42b230]
call ebx
mov dword [ebp - 4], eax
test eax, eax
je 0x406750
xor edi, edi
mov eax, dword [ebp - 0x34]
shl eax, 2
push eax
push 8
push dword [0x42b230]
mov dword [ebp - 0x10], eax
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4067a5
push 0x80
call esi
push dword [ebp - 0x10]
push 8
push dword [0x42b230]
call ebx
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x406786
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, 0x41
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0x1a
lea ecx, [esi - 0x27]
jmp 0x4067c5
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], edi
test al, 1
je 0x4068e6
push esi
lea eax, [ebp - 0x248]
push str.__hc:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
mov word [ebp - 0x23c], cx
cmp eax, 2
je 0x406838
cmp eax, 3
je 0x406838
cmp eax, 4
jne 0x4068eb
cmp dword [0x4291b0], ecx
jne 0x4068eb
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00407190
mov esi, eax
jmp 0x406882
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x42b230]
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
test esi, esi
jne 0x406882
mov edi, dword [ebp - 0x20]
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 8
push dword [0x42b230]
call ebx
mov esi, eax
test esi, esi
je 0x406863
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push esi
push fcn.00406330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4068eb
mov ecx, dword [ebp - 0x18]
inc edi
mov esi, dword [ebp - 4]
mov dword [ebp - 0x1c], edi
mov dword [esi + ecx*4], eax
inc ecx
mov dword [ebp - 0x18], ecx
cmp edi, dword [ebp - 0x34]
jne 0x4068ee
push 0xffffffffffffffff
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + eax*4]
push ecx
mov dword [esi + eax*4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edi
jmp 0x4068ee
mov esi, dword [ebp - 4]
jmp 0x4068f4
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc dword [ebp - 0x10]
shr eax, 1
sub ecx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jne 0x4067c2
mov ebx, dword [ebp - 0x14]
test edi, edi
je 0x40694e
mov eax, edi
mov ecx, esi
mov edx, ebx
mov esi, dword [ecx]
lea ecx, [ecx + 4]
test esi, esi
je 0x406924
mov dword [edx], esi
add edx, 4
dec eax
test eax, eax
jne 0x406915
push 0xffffffffffffffff
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
jle 0x40694e
nop word [eax + eax]
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jl 0x406940
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push dword [0x42b230]
call esi
push ebx
push 0
push dword [0x42b230]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret