Function at 0x403890
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x528e09
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589758]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x160]
mov esi, ecx
call fcn.004a4f4a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4038ee
push 0x80004005
call fcn.00401310
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x158], 0
call fcn.004a4f4a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403923
push 0x80004005
call fcn.00401310
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x158], 1
call fcn.004a4f4a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403955
push 0x80004005
call fcn.00401310
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x158], 2
call fcn.004a5d9f
mov bl, 3
mov byte [esp + 0x158], bl
cmp ebp, dword [esi + 0x33c]
jne 0x4039e8
push 0
push ebp
mov ecx, esi
call fcn.00401a40
lea edi, [esi + 0x340]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [edi], 0
je 0x403d4a
lea esp, [esp]
mov ecx, dword [esi + 0x33c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push ecx
push edi
mov ecx, esi
call fcn.00402030
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4039d0
sub eax, edx
cmp byte [edi + eax + 1], cl
lea edi, [edi + eax + 1]
jne 0x4039b0
jmp 0x403d4a
mov eax, dword [esp + 0x14]
push ebp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push eax
call fcn.00402350
add esp, 4
lea edx, [esp + 0x24]
add eax, 0x10
push edx
mov ecx, esi
mov dword [edi], eax
call fcn.00403030
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 4
call fcn.00402d50
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x158], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push ebp
mov ecx, esi
call fcn.00401a40
push 0x539568
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00402b60
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x15c], 5
call fcn.00402d50
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x158], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403aa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x34]
call fcn.004a5e34
test eax, eax
je 0x403bc3
lea esp, [esp]
lea ecx, [esp + 0x2c]
call fcn.004a5a02
mov edx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x30]
call eax
test eax, eax
je 0x403bbb
lea ecx, [esp + 0x2c]
call fcn.004a5d64
test eax, eax
jne 0x403bbb
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
call fcn.004a606e
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 6
call fcn.00402d50
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x158], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403b3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x48]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x403b44
lea ecx, [esp + 0x48]
push str.RECYCLED
push ecx
call fcn.00509315
add esp, 8
test eax, eax
je 0x403bbb
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00402aa0
add esp, 0xc
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push ebp
push eax
mov ecx, esi
mov byte [esp + 0x16c], 7
call fcn.00402030
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x158], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403bbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x403ac0
cmp dword [esi + 0x128], 0
jne 0x403d4a
mov ecx, dword [esp + 0x20]
push 0
push ecx
lea ecx, [esp + 0x34]
call fcn.004a5e34
test eax, eax
je 0x403d4a
jmp 0x403bf0
lea ecx, [esp + 0x2c]
call fcn.004a5a02
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x30]
call eax
test eax, eax
jne 0x403d3f
lea ecx, [esp + 0x2c]
call fcn.004a5d64
test eax, eax
jne 0x403d3f
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
call fcn.004a606e
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 8
call fcn.00402d50
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x158], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403c6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x48]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x403c78
cmp dword [esi + 0x54], 0
mov eax, dword [edi - 0xc]
je 0x403ce8
cmp eax, 4
jle 0x403d3f
mov ecx, dword [esi + 0x12c]
push ecx
lea ecx, [esp + eax + 0x48]
push ecx
call fcn.00509315
add esp, 8
test eax, eax
jne 0x403d3f
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402b60
add esp, 0xc
mov edx, dword [esi + 0x58]
mov eax, dword [eax]
push 0xffffffffffffffff
push edx
push 0
push ebp
push eax
mov ecx, esi
mov byte [esp + 0x16c], 9
call fcn.00402030
mov eax, dword [esp + 0x1c]
jmp 0x403d1c
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00402b60
add esp, 0xc
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ebp
push eax
mov ecx, esi
mov byte [esp + 0x16c], 0xa
call fcn.00402030
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x158], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
jne 0x403bf0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x158], 2
call fcn.004a5dc5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x158], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x158], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dab
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
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x158], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.004f6592
add esp, 0x148
ret 4