Function at 0x52338c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x523394
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x523846
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00454e24
mov byte [0x52c718], 0
mov eax, dword [0x5295c0]
mov eax, dword [eax]
call fcn.00458274
cmp byte [0x52c718], 0
jne 0x523510
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, 0x52385c
call fcn.004f2b2c
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402e94
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
call fcn.004097ac
cmp dword [0x52c788], 1
jne 0x5234a0
mov eax, dword [ebp - 8]
call fcn.0051ff64
test al, al
je 0x523504
mov ax, word [0x523868]
push eax
push 0
lea edx, [ebp - 0x18]
mov eax, 0x523874
call fcn.0051ef90
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.004048d4
mov edx, dword [ebp - 0x18]
mov eax, dword [0x52c714]
mov eax, dword [eax + 0x30c]
mov cl, 2
call fcn.0050148c
dec eax
jne 0x523504
mov eax, 0x52c71c
mov edx, dword [ebp - 8]
call fcn.00404660
mov byte [0x52c718], 1
lea eax, [ebp - 0x1c]
mov ecx, dword [0x52c71c]
mov edx, 0x523898
call fcn.00404918
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004f2b2c
mov eax, dword [0x52c71c]
call fcn.005205d8
jmp 0x52381b
lea eax, [ebp - 0x20]
mov ecx, dword [0x52c78c]
mov edx, dword [ebp - 8]
call fcn.00404918
mov eax, dword [ebp - 0x20]
call fcn.004094a8
test al, al
je 0x523504
mov eax, 0x52c71c
mov edx, dword [ebp - 8]
call fcn.00404660
mov byte [0x52c718], 1
lea eax, [ebp - 0x24]
mov ecx, dword [0x52c71c]
mov edx, 0x523898
call fcn.00404918
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004f2b2c
mov eax, dword [0x52c71c]
call fcn.005205d8
jmp 0x52381b
mov eax, dword [0x5295c0]
mov eax, dword [eax]
call fcn.00458274
cmp dword [0x52c788], 1
jne 0x5236be
cmp byte [0x52c718], 0
jne 0x5236be
xor eax, eax
push ebp
push 0x5236b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4308e4]
call fcn.00430a50
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.00430b2c
lea edx, [ebp - 0x28]
mov eax, 0x5238ac
call fcn.0051ef90
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, ebx
call fcn.00430b94
test al, al
je 0x5236a3
lea eax, [ebp - 8]
call fcn.0040460c
lea edx, [ebp - 0x2c]
mov eax, 0x5238dc
call fcn.0051ef90
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00430eb0
test al, al
je 0x5235b0
lea edx, [ebp - 0x30]
mov eax, 0x5238dc
call fcn.0051ef90
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 8]
mov eax, ebx
call fcn.00430d5c
cmp dword [ebp - 8], 0
jne 0x5235eb
lea edx, [ebp - 0x34]
mov eax, 0x5238f0
call fcn.0051ef90
mov edx, dword [ebp - 0x34]
mov eax, ebx
call fcn.00430eb0
test al, al
je 0x5235eb
lea edx, [ebp - 0x38]
mov eax, 0x5238f0
call fcn.0051ef90
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 8]
mov eax, ebx
call fcn.00430d5c
cmp dword [ebp - 8], 0
je 0x5236a3
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.0040d854
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 8]
call fcn.004046a4
mov eax, dword [ebp - 8]
call fcn.0051ff64
test al, al
je 0x5236a3
mov ax, word [0x523868]
push eax
push 0
lea edx, [ebp - 0x40]
mov eax, 0x523874
call fcn.0051ef90
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 8]
call fcn.004048d4
mov edx, dword [ebp - 0x40]
mov eax, dword [0x52c714]
mov eax, dword [eax + 0x30c]
mov cl, 2
call fcn.0050148c
dec eax
jne 0x5236a3
mov eax, 0x52c71c
mov edx, dword [ebp - 8]
call fcn.00404660
mov byte [0x52c718], 1
lea eax, [ebp - 0x44]
mov ecx, dword [0x52c71c]
mov edx, 0x523898
call fcn.00404918
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004f2b2c
mov eax, dword [0x52c71c]
call fcn.005205d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52381b
mov eax, ebx
call fcn.004037dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5236be
cmp byte [0x52c718], 0
jne 0x52381b
lea eax, [ebp - 0x10]
call fcn.00522fe8
cmp dword [ebp - 0x10], 0
je 0x5236ef
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x10]
call fcn.0040d854
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x10]
call fcn.004046a4
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.0052300c
test al, al
jne 0x5237e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov dl, 1
call fcn.0042e250
mov byte [ebp - 9], 0x43
xor edx, edx
push ebp
push 0x5237bd
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x4c]
mov dl, byte [ebp - 9]
call fcn.004047f4
lea eax, [ebp - 0x4c]
mov edx, 0x523904
call fcn.004048d4
mov eax, dword [ebp - 0x4c]
call fcn.00404acc
push eax
call sub.kernel32.dll_GetDriveTypeA
add eax, 0xfffffffe
sub eax, 2
jae 0x5237b3
push 0x52c724
call sub.kernel32.dll_EnterCriticalSection_1
inc dword [0x52c720]
push 0x52c724
call sub.kernel32.dll_LeaveCriticalSection_1
mov cl, 1
mov dl, 1
mov eax, dword [0x5228a0]
call fcn.0041f244
mov ebx, eax
lea eax, [ebp - 0x50]
mov dl, byte [ebp - 9]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x54]
call fcn.00403084
mov edx, 0x523908
lea eax, [ebp - 0x54]
mov cl, 2
call fcn.00403054
lea edx, [ebp - 0x54]
lea eax, [ebx + 0x44]
call fcn.00404870
mov eax, ebx
call fcn.0041f5d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5237c7
inc byte [ebp - 9]
cmp byte [ebp - 9], 0x5b
jne 0x523715
xor ecx, ecx
mov dl, 1
mov eax, dword [0x522e44]
call fcn.0041f244
jmp 0x52381b
cmp byte [0x52c718], 0
je 0x52381b
lea eax, [ebp - 0x58]
mov ecx, dword [0x52c71c]
mov edx, 0x523914
call fcn.00404918
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004f2b2c
mov eax, dword [0x52c71c]
call fcn.005205d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52384d
lea eax, [ebp - 0x58]
call fcn.0040460c
lea eax, [ebp - 0x4c]
mov edx, 0x10
call fcn.00404630
lea eax, [ebp - 8]
call fcn.0040460c
ret