Function at 0x40cdd0
Capabilities:
Get disk information
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c15c
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a67d0]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov eax, dword [esp + 0x138]
mov ebp, dword [esp + 0x134]
xor edi, edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
call fcn.0040cdb0
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], eax
call fcn.004326dd
lea ecx, [esp + 0x58]
push ecx
push 0x64
mov dword [esp + 0x134], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x58], di
lea esi, [esp + 0x58]
je 0x40ce9a
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, edi
push esi
call edi
test al, 5
je 0x40ce76
mov edx, dword [esp + 0x3c]
push esi
push edx
lea ecx, [esp + 0x3c]
call fcn.00432c99
mov eax, esi
lea edx, [eax + 2]
jmp 0x40ce80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce80
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x40ce60
mov eax, dword [esp + 0x3c]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
jg 0x40cf04
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [ebp + 4], ecx
lea ecx, [esp + 0x34]
mov dword [ebp], edx
mov dword [esp + 0x12c], 0xffffffff
call fcn.004329fb
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004611fb
add esp, 0x11c
ret 8
mov eax, dword [esp + 0x3c]
test ebx, ebx
jl 0x40d0b9
cmp ebx, eax
jge 0x40d0b9
mov eax, dword [esp + 0x38]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40cf42
cmp eax, dword [esi]
jne 0x40cf42
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40cf7d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40d0b4
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00461180
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x2c], edi
push 0x485430
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x138], 1
call fcn.004035b0
add esp, 0xc
lea ecx, [esp + 0x48]
mov byte [esp + 0x12c], 2
call fcn.004447cb
mov eax, dword [esp + 0x18]
push 0
push 0
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x138], 3
call fcn.00444ce8
test eax, eax
je 0x40d03d
lea ecx, [esp + 0x48]
call fcn.00444769
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
lea eax, [edi - 0x10]
sub esi, 0x10
cmp eax, esi
mov dword [esp + 0x20], 1
je 0x40d03d
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x40d033
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d033
push eax
call fcn.00402750
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x40d024
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x14]
add ebx, 0x10
mov dword [ecx], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x40d03d
mov eax, dword [edi - 0xc]
push eax
push edi
call fcn.00402ce0
lea ecx, [esp + 0x48]
mov byte [esp + 0x12c], 2
call fcn.00444952
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x12c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d076
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x12c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d09a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 1
cmp ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
jl 0x40cf00
mov ebp, dword [esp + 0x30]
jmp 0x40ceac
call fcn.00402440
call fcn.00431536
int3