Function at 0x4069d0
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 - 0x1c], 0
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
shl eax, 2
push eax
push 8
push dword [0x42e394]
mov dword [ebp - 0x18], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp - 4], eax
test eax, eax
jne 0x406a3b
mov edi, dword [ebp - 0x18]
nop dword [eax]
push 0x80
call ebx
push edi
push 8
push dword [0x42e394]
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x406a20
xor edi, edi
mov eax, dword [ebp - 0x34]
shl eax, 2
push eax
push 8
push dword [0x42e394]
mov dword [ebp - 0x14], eax
call esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x406a7b
mov edi, dword [ebp - 0x14]
nop dword [eax]
push 0x80
call ebx
push edi
push 8
push dword [0x42e394]
call esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x406a60
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov ecx, eax
mov dword [ebp - 0xc], 0x1a
mov eax, 0x41
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
lea edx, [eax - 0x27]
jmp 0x406aa3
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
test cl, 1
je 0x406c74
push dword [ebp - 8]
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 0x406b40
cmp eax, 3
je 0x406b40
cmp eax, 4
jne 0x406bec
cmp dword [0x42c310], ecx
jne 0x406bec
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x42e394]
mov dword [ebp - 0x20], eax
call esi
mov edi, eax
test edi, edi
jne 0x406b82
push 0x80
call ebx
push dword [ebp - 0x20]
push 8
push dword [0x42e394]
call esi
mov edi, eax
test edi, edi
je 0x406b24
jmp 0x406b82
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x42e394]
mov dword [ebp - 0x20], eax
call esi
mov edi, eax
test edi, edi
jne 0x406b82
push 0x80
call ebx
push dword [ebp - 0x20]
push 8
push dword [0x42e394]
call esi
mov edi, eax
test edi, edi
je 0x406b68
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0
push 0
push edi
push fcn.00406390
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x406bef
mov edx, dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x10], edi
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x1c], edx
cmp edi, dword [ebp - 0x34]
jne 0x406bef
push 0xffffffffffffffff
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
mov edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + edx*4]
push ecx
mov dword [eax + edx*4], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
shr dword [ebp - 0x14], 1
inc eax
sub edx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
jne 0x406aa0
mov ebx, dword [ebp - 0x18]
test edi, edi
je 0x406c4e
mov eax, edi
mov edx, ebx
mov esi, dword [ecx]
lea ecx, [ecx + 4]
test esi, esi
je 0x406c22
mov dword [edx], esi
add edx, 4
dec eax
test eax, eax
jne 0x406c13
push 0xffffffffffffffff
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
xor esi, esi
test edi, edi
jle 0x406c4e
nop dword [eax + eax]
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc esi
cmp esi, edi
jl 0x406c40
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.DLL_HeapFree]
push eax
push 0
push dword [0x42e394]
call esi
push ebx
push 0
push dword [0x42e394]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
jmp 0x406bf5