Function at 0x407070
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 [0x42a8e0]
mov dword [ebp - 0x18], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4070db
mov edi, dword [ebp - 0x18]
nop dword [eax]
push 0x80
call ebx
push edi
push 8
push dword [0x42a8e0]
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x4070c0
xor edi, edi
mov eax, dword [ebp - 0x34]
shl eax, 2
push eax
push 8
push dword [0x42a8e0]
mov dword [ebp - 0x14], eax
call esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40711b
mov edi, dword [ebp - 0x14]
nop dword [eax]
push 0x80
call ebx
push edi
push 8
push dword [0x42a8e0]
call esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x407100
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 0x407143
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
test cl, 1
je 0x407319
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 0x4071e0
cmp eax, 3
je 0x4071e0
cmp eax, 4
jne 0x407298
cmp dword [0x4297f8], ecx
jne 0x407298
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x42a8e0]
mov dword [ebp - 0x20], eax
call esi
mov edi, eax
test edi, edi
jne 0x40722e
push 0x80
call ebx
push dword [ebp - 0x20]
push 8
push dword [0x42a8e0]
call esi
mov edi, eax
test edi, edi
je 0x4071c4
jmp 0x40722e
cmp dword [0x429804], ecx
jne 0x407298
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x42a8e0]
mov dword [ebp - 0x20], eax
call esi
mov edi, eax
test edi, edi
jne 0x40722e
push 0x80
call ebx
push dword [ebp - 0x20]
push 8
push dword [0x42a8e0]
call esi
mov edi, eax
test edi, edi
je 0x407214
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push edi
push fcn.00406ba0
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 0x40729b
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 0x40729b
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 eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
shr dword [ebp - 0x14], 1
inc eax
sub edx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
jne 0x407140
mov ebx, dword [ebp - 0x18]
test edi, edi
je 0x4072f3
mov eax, edi
mov edx, ebx
nop
mov esi, dword [ecx]
lea ecx, [ecx + 4]
test esi, esi
je 0x4072cf
mov dword [edx], esi
add edx, 4
dec eax
test eax, eax
jne 0x4072c0
push 0xffffffffffffffff
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
jle 0x4072f3
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jl 0x4072e5
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push dword [0x42a8e0]
call esi
push ebx
push 0
push dword [0x42a8e0]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
jmp 0x4072a1