Function at 0x40b2a0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442411
mov eax, dword fs:[0]
push eax
sub esp, 0x530
mov eax, dword [0x45878c]
xor eax, esp
mov dword [esp + 0x528], eax
push ebx
push esi
push edi
mov eax, dword [0x45878c]
xor eax, esp
push eax
lea eax, [esp + 0x540]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], edi
call fcn.0041da94
lea eax, [esp + 0x134]
push eax
push 0x400
mov dword [esp + 0x550], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [esp + 0x134]
lea ebx, [esp + eax + 0x134]
mov ecx, esi
cmp ecx, ebx
jae 0x40b354
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40b33c
mov edx, dword [esp + 0x38]
push esi
push edx
lea ecx, [esp + 0x38]
call fcn.0041dd5c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b341
sub eax, edx
lea esi, [esi + eax + 1]
cmp esi, ebx
jb 0x40b321
mov eax, dword [esp + 0x38]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
jle 0x40b627
test ebx, ebx
jl 0x40b6ab
cmp ebx, eax
jge 0x40b6ab
mov eax, dword [esp + 0x34]
mov eax, dword [eax + ebx*4]
push 0
push 0
push 0
push 0
push eax
push ebx
lea esi, [edi + 0x134]
push 1
mov ecx, esi
call fcn.0041b4a7
cmp ebx, dword [esp + 0x38]
mov edi, eax
jge 0x40b6ab
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + ebx*4]
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
call fcn.0041068e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b697
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
shrd ecx, edx, 0x14
shr edx, 0x14
push edx
push ecx
lea eax, [esp + 0x20]
push str._ldM
push eax
mov byte [esp + 0x558], 1
call fcn.00404ca0
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
push 3
push edi
mov ecx, esi
call fcn.0041b3ee
cmp ebx, dword [esp + 0x38]
jge 0x40b6ab
mov edx, dword [esp + 0x34]
mov eax, dword [edx + ebx*4]
push 0x20
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x6c]
push edx
push 0x80
lea ecx, [esp + 0xcc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40b5ec
lea edx, [esp + 0x94]
push edx
push 1
push edi
mov ecx, esi
call fcn.0041b3ee
cmp ebx, dword [esp + 0x38]
jge 0x40b6ab
mov eax, dword [esp + 0x34]
mov eax, dword [eax + ebx*4]
cmp dword [eax - 0xc], 0
jl 0x40b6a1
mov cl, byte [eax]
mov byte [esp + 0x44], cl
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.00406ec0
test eax, eax
je 0x40b4e2
mov ecx, dword [esp + 0x88]
push ecx
lea edx, [esp + 0x1c]
push 0x44669c
push edx
call fcn.00404ca0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push 2
push edi
mov ecx, esi
call fcn.0041b3ee
cmp ebx, dword [esp + 0x38]
jge 0x40b6ab
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + ebx*4]
cmp dword [eax - 0xc], 0
jl 0x40b6a1
mov dl, byte [eax]
mov byte [esp + 0x48], dl
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0040aba0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x548], 2
je 0x40b5ab
push eax
push 4
push edi
mov ecx, esi
call fcn.0041b3ee
push 5
push str.disk0
lea ecx, [esp + 0x1c]
call fcn.00401740
cmp dword [esp + 0x14], 0
je 0x40b553
add dword [esp + 0x24], 1
push 5
push str.disk1
lea ecx, [esp + 0x1c]
call fcn.00401740
cmp dword [esp + 0x14], 0
mov esi, 1
je 0x40b573
add dword [esp + 0x28], esi
push 5
push str.disk2
lea ecx, [esp + 0x1c]
call fcn.00401740
cmp dword [esp + 0x14], 0
je 0x40b58e
add dword [esp + 0x20], esi
push 5
push str.disk3
lea ecx, [esp + 0x1c]
call fcn.00401740
cmp dword [esp + 0x14], 0
je 0x40b5c4
add dword [esp + 0x2c], esi
jmp 0x40b5c4
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x154]
push 0
push edi
push 0x1008
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x548], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b5ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x548], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b614
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
add ebx, 1
cmp ebx, eax
jl 0x40b372
mov ecx, dword [esp + 0x24]
push ecx
push 0
mov ecx, edi
call fcn.00409b70
mov edx, dword [esp + 0x28]
push edx
push 1
mov ecx, edi
call fcn.00409b70
mov eax, dword [esp + 0x20]
push eax
push 2
mov ecx, edi
call fcn.00409b70
mov ecx, dword [esp + 0x2c]
push ecx
push 3
mov ecx, edi
call fcn.00409b70
lea ecx, [esp + 0x30]
mov dword [esp + 0x548], 0xffffffff
call fcn.0041dc45
mov ecx, dword [esp + 0x540]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x528]
xor ecx, esp
call fcn.0042d47b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401150
push 0x80070057
call fcn.00401150
jmp fcn.0040ff2c