Function at 0x404be0
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
mov eax, dword [0x420040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x68
mov dword [ebp - 0x178], eax
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00407b00
push 0x104
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.00407b00
add esp, 0x18
lea eax, [ebp - 0x170]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
mov dword [ebp - 0x17c], eax
xor edx, edx
mov dword [ebp - 0x184], ebx
xor ecx, ecx
mov dword [ebp - 0x174], edx
test eax, eax
je 0x404d1a
xor esi, esi
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x170]
lea edi, [ebp - 0x6c]
add edi, esi
push edi
mov byte [edi], al
movzx eax, byte [ebp + ecx - 0x16f]
mov byte [ebp + esi - 0x6b], al
movzx eax, byte [ebp + ecx - 0x16e]
add ecx, 4
mov byte [ebp + esi - 0x6a], al
mov dword [ebp - 0x180], ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x404cc9
cmp eax, 3
je 0x404cc9
cmp eax, 6
je 0x404cc9
cmp eax, 4
jne 0x404cb8
mov dword [ebp + esi - 0x1f0], 2
jmp 0x404cda
push edi
push eax
push str.Uknonwn_DrvType___d__of_root:__s__skipped_n
call fcn.00405140
add esp, 0xc
jmp 0x404cfc
inc dword [ebp - 0x174]
mov dword [ebp + esi - 0x1f0], 1
inc ebx
lea esi, [ebx*4]
push dword [ebp + esi - 0x1f4]
lea eax, [ebp + esi - 0x70]
push eax
push ebx
push str.Found_disk___d___s___type:__d_n
call fcn.00405140
add esp, 0x10
mov ecx, dword [ebp - 0x180]
cmp ecx, dword [ebp - 0x17c]
jb 0x404c60
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x184], ebx
mov ebx, dword [ebp - 0x178]
xor ecx, ecx
test edx, edx
mov eax, 2
mov edi, 2
setne cl
sub eax, ecx
mov dword [ebp - 0x188], ecx
add ebx, 0xadc
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], ebx
mov esi, ebx
mov ebx, dword [ebp - 0x178]
push 0xa328
mov dword [esi - 4], ebx
call fcn.0040b238
push 0xa328
push 0
push eax
mov dword [esi], eax
call fcn.00407b00
mov eax, dword [esi]
add esp, 0x10
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], 0
lea eax, [esi + 4]
push eax
mov dword [eax], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea esi, [esi + 0x28]
sub edi, 1
jne 0x404d53
push 2
push str.___Prepared_workdata_for__d_threads_n
call fcn.00405140
lea eax, [ebx + 0xc1]
add esp, 8
cmp byte [eax], 0
mov ebx, dword [ebp - 0x17c]
mov dword [ebp - 0x174], eax
je 0x404e34
push eax
push str.___Priority_path:__s_n
call fcn.00405140
mov eax, dword [ebx]
add esp, 8
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x178]
cmp byte [eax + 0xc1], 0
je 0x404e2e
mov edx, dword [ebp - 0x174]
mov esi, 8
mov al, byte [edx]
movsx cx, al
lea edx, [edx + 1]
mov eax, dword [ebx]
lea esi, [esi + 2]
mov word [esi + eax - 2], cx
mov al, byte [edx]
test al, al
jne 0x404e17
mov eax, dword [ebp - 0x174]
mov edi, dword [ebp - 0x184]
xor edx, edx
mov dword [ebp - 0x17c], edx
cmp byte [eax], dl
jne 0x404f18
xor ebx, ebx
test edi, edi
jle 0x404f05
nop dword [eax]
nop dword [eax + eax]
cmp dword [ebp + ebx*4 - 0x1f0], 2
jne 0x404efc
lea esi, [ebp - 0x6c]
push eax
lea esi, [esi + ebx*4]
push esi
call fcn.00402b60
add esp, 8
test eax, eax
jne 0x404ef6
cmp byte [esi], 0
mov ecx, dword [ebp - 0x17c]
mov edx, dword [ebp - 0x178]
lea eax, [ecx + ecx*4]
lea edi, [edx + eax*8]
mov eax, dword [edi + 0xadc]
mov eax, dword [eax + 4]
je 0x404ed0
imul edx, eax, 0x20a
add edx, 8
nop dword [eax + eax]
movsx cx, byte [esi]
lea esi, [esi + 1]
mov eax, dword [edi + 0xadc]
lea edx, [edx + 2]
mov word [edx + eax - 2], cx
cmp byte [esi], 0
jne 0x404eb0
mov ecx, dword [ebp - 0x17c]
mov eax, dword [edi + 0xadc]
mov esi, dword [ebp - 0x180]
mov edi, dword [ebp - 0x184]
inc dword [eax + 4]
cmp esi, 1
jle 0x404ef6
lea eax, [ecx + 1]
cdq
idiv esi
mov dword [ebp - 0x17c], edx
mov eax, dword [ebp - 0x174]
inc ebx
cmp ebx, edi
jl 0x404e60
push str.___Network_disk_letters_distributing_done_n
call fcn.00405140
mov eax, dword [ebp - 0x174]
add esp, 4
cmp byte [eax], 0
jne 0x404fb8
xor ebx, ebx
test edi, edi
jle 0x404fb8
nop dword [eax + eax]
cmp dword [ebp + ebx*4 - 0x1f0], 1
jne 0x404faf
lea esi, [ebp - 0x6c]
push eax
lea esi, [esi + ebx*4]
push esi
call fcn.00402b60
add esp, 8
test eax, eax
jne 0x404fa9
cmp byte [esi], 0
mov eax, dword [ebp - 0x180]
mov ecx, dword [ebp - 0x178]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
mov eax, dword [edi + 0xadc]
mov eax, dword [eax + 4]
je 0x404f9a
imul edx, eax, 0x20a
add edx, 8
nop word [eax + eax]
movsx cx, byte [esi]
lea esi, [esi + 1]
mov eax, dword [edi + 0xadc]
lea edx, [edx + 2]
mov word [edx + eax - 2], cx
cmp byte [esi], 0
jne 0x404f80
mov eax, dword [edi + 0xadc]
mov edi, dword [ebp - 0x184]
inc dword [eax + 4]
mov eax, dword [ebp - 0x174]
inc ebx
cmp ebx, edi
jl 0x404f30
mov eax, dword [ebp - 0x180]
mov ecx, dword [ebp - 0x188]
mov ebx, dword [ebp - 0x178]
lea edi, [ecx + eax]
push edi
push str.___Starting__d_threads_n
mov dword [ebx + 0xd98], ecx
mov dword [ebx + 0xd9c], eax
mov dword [ebp - 0x180], edi
call fcn.00405140
add esp, 8
test edi, edi
jle 0x405030
lea esi, [ebx + 0xd58]
mov dword [ebp - 0x188], edi
add ebx, 0xad8
push 0
push 0
push ebx
push 0x404a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
add ebx, 0x28
mov dword [esi], eax
lea esi, [esi + 4]
sub edi, 1
jne 0x405003
mov edi, dword [ebp - 0x180]
mov ebx, dword [ebp - 0x178]
push str.___Set_complete_list_flags_for_all_threads_n
call fcn.00405140
add esp, 4
test edi, edi
jle 0x40506b
lea esi, [ebx + 0xae0]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [eax]
push esi
call ebx
mov eax, dword [esi - 4]
push esi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esi, 0x28
sub edi, 1
jne 0x405050
push str.___PrepareWorkThreadsData__:_done_function__returning_n
call fcn.00405140
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00406952
mov esp, ebp
pop ebp
ret