Function at 0x403f40
Capabilities:
Create thread
Get disk information
Terminate thread

Disassembly:
sub esp, 0x42c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x40425c
push edi
mov edi, 3
push esi
nop
mov esi, 1
mov ecx, edi
shl esi, cl
test ebp, esi
je 0x403fb0
lea eax, [edi + 0x41]
push eax
push str._c:_
lea ecx, [esp + 0x434]
push 0xa
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf_s]
add esp, 0x10
lea edx, [esp + 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x403fb0
not esi
and ebp, esi
add edi, 1
cmp edi, 0x1a
jl 0x403f70
push 0x7c
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebx
call sub.MSVCR80.dll_memset
push 0x7c
lea ecx, [esp + 0xb4]
push ebx
push ecx
mov dword [esp + 0xb8], ebx
call sub.MSVCR80.dll_memset
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0x18
lea edi, [esp + 0x120]
xor esi, esi
jmp 0x404000
push edi
mov dword [esp + esi + 0x24], ebx
mov dword [esp + esi + 0xa4], ebx
call ebp
add esi, 4
add edi, 0x18
cmp esi, 0x80
jl 0x404000
lea esp, [esp]
mov edx, dword [0x4083e8]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404236
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x40425a
mov edi, 3
lea ebp, [esp + 0x168]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebp
mov edi, edi
mov ecx, edi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x14]
test ecx, eax
jne 0x4041ea
test esi, eax
je 0x4041bf
lea edx, [edi + 0x41]
push edx
push str._c:_
lea eax, [esp + 0x428]
push 0xa
push eax
call dword [sym.imp.MSVCR80.dll_sprintf_s]
add esp, 0x10
lea ecx, [esp + 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, ebx
je 0x4041bf
cmp eax, 1
je 0x4041bf
cmp eax, 5
je 0x4041bf
push 0x18
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4041bb
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + edi*4 + 0x20]
cmp eax, ebx
lea ebp, [esp + edi*4 + 0x20]
je 0x4040fd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp], ebx
mov eax, dword [esp + edi*4 + 0xa0]
cmp eax, ebx
lea edi, [esp + edi*4 + 0xa0]
je 0x404118
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], ebx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea eax, [esp + 0x420]
lea ebx, [esi + 8]
mov edx, ebx
mov ecx, eax
sub edx, ecx
jmp 0x404140
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x404140
push 0
push 0x2000000
push 3
push 0
push 7
push 0xc0000000
push ebx
call dword [0x40a268]
mov ebx, dword [esp + 0x10]
push 0
push 0
push esi
push 0x404280
mov dword [edi], eax
push 0
push 0
mov dword [esi], edi
mov dword [esi + 4], ebp
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp], eax
jne 0x4041aa
mov eax, dword [edi]
test eax, eax
je 0x4041a1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
xor ebx, ebx
mov esi, dword [esp + 0x1c]
add edi, 1
add ebp, 0x18
cmp edi, 0x1a
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebp
jl 0x404060
push 0x3e8
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404020
test esi, eax
jne 0x4041bf
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + edi*4 + 0x20]
cmp eax, ebx
je 0x404214
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esp + edi*4 + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + edi*4 + 0x20], ebx
mov eax, dword [esp + edi*4 + 0xa0]
cmp eax, ebx
je 0x40422d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + edi*4 + 0xa0], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4041bf
mov eax, dword [0x4083f0]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x4083f0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x4083e8]
push edx
call esi
pop esi
pop edi
mov ecx, dword [esp + 0x430]
pop ebp
pop ebx
xor ecx, esp
call fcn.004058f0
add esp, 0x42c
ret