Function at 0x43b850
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x4f2d80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
xor eax, eax
push esi
mov word [ebp - 0x24c], ax
mov eax, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], ebx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43b890
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x24c]
call fcn.00411930
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0043b330
add esp, 4
test al, al
je 0x43b8ea
cmp dword [ebp - 0x238], 8
jb 0x43b8d7
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00491b32
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049269f
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
push ecx
xor eax, eax
mov esi, 7
push edi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
call fcn.0043b3c0
add esp, 8
lea edi, [esi + 1]
test al, al
jne 0x43b93d
cmp dword [ebp - 0x21c], edi
jb 0x43b932
mov edx, dword [ebp - 0x230]
push edx
call fcn.00491b32
add esp, 4
mov dword [ebp - 0x21c], esi
jmp 0x43bbd1
mov ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], edi
jae 0x43b951
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x43b9b2
dec eax
push eax
push ebx
lea eax, [ebp - 0x24c]
xor edx, edx
push eax
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], ebx
mov word [ebp - 0x268], dx
call fcn.00402790
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.004125d0
cmp dword [ebp - 0x254], edi
jb 0x43b9b2
mov edx, dword [ebp - 0x268]
push edx
call fcn.00491b32
add esp, 4
mov ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], edi
jae 0x43b9c6
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x43b9da
lea eax, [ebp - 0x230]
push ecx
push eax
call fcn.00493edc
add esp, 8
test eax, eax
jne 0x43ba42
cmp dword [ebp - 0x21c], edi
jb 0x43b9ff
mov eax, dword [ebp - 0x230]
push eax
call fcn.00491b32
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], cx
cmp dword [ebp - 0x238], edi
jb 0x43b8d7
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00491b32
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049269f
mov esp, ebp
pop ebp
ret
push 1
push ebx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x26c], 0x3a
call fcn.0043b100
mov esi, eax
cmp esi, ebx
je 0x43bbb0
cmp esi, 0xffffffff
je 0x43bbb0
cmp esi, 1
jbe 0x43bab7
lea ecx, [esi - 2]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.0043b0e0
cmp word [eax], 0x5c
je 0x43bab7
lea ecx, [ebp - 0x230]
call fcn.004019c0
lea ecx, [ebp - 0x24c]
call fcn.004019c0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049269f
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [esi - 1]
xor edx, edx
push eax
lea ecx, [ebp - 0x24c]
mov word [ebp - 0xc], dx
call fcn.0043b0e0
mov ecx, dword [eax]
push 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x43ba8e
cmp eax, 0x104
je 0x43ba8e
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43bb05
mov ecx, dword [ebp - 0x23c]
sub eax, edx
sar eax, 1
sub ecx, esi
mov edi, eax
lea edx, [ecx + edi - 1]
cmp edx, dword [ebp - 0x220]
jne 0x43ba8e
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x43bb43
lea eax, [ebp - 0x230]
push edi
lea ecx, [ebp - 0x214]
push ecx
push eax
call fcn.00493d3b
add esp, 0xc
test eax, eax
jne 0x43ba8e
inc esi
push esi
lea ecx, [ebp - 0x24c]
call fcn.0043b0e0
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.0043b0e0
push eax
call fcn.00493edc
add esp, 8
lea ecx, [ebp - 0x230]
test eax, eax
jne 0x43ba94
call fcn.004019c0
lea ecx, [ebp - 0x24c]
call fcn.004019c0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049269f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x21c], edi
jb 0x43bbc7
mov edx, dword [ebp - 0x230]
push edx
call fcn.00491b32
add esp, 4
mov dword [ebp - 0x21c], 7
xor eax, eax
mov word [ebp - 0x230], ax
mov dword [ebp - 0x220], ebx
cmp dword [ebp - 0x238], edi
jb 0x43bbf7
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00491b32
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0049269f
mov esp, ebp
pop ebp
ret