Function at 0x4593ed
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, ecx
push edi
push esi
lea ecx, [ebp - 0x58]
call fcn.0042e119
lea eax, [ebp + 8]
push eax
call fcn.00426ff7
pop ecx
xor ebx, ebx
push 2
pop edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], 0xfffffff8
jmp 0x459555
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4887cc
call fcn.0042df66
add esp, 0xc
test al, al
jne 0x459552
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4887c8
call fcn.0042df66
add esp, 0xc
test al, al
jne 0x459552
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4877d8
call fcn.0042df66
add esp, 0xc
test al, al
jne 0x45954c
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4814dc
call fcn.0042df66
add esp, 0xc
test al, al
jne 0x45954c
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x483450
call fcn.0042df66
add esp, 0xc
test al, al
je 0x4594c0
mov dword [ebp - 0x44], 1
jmp 0x459555
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push 0x4887c4
call fcn.0042df66
add esp, 0xc
test al, al
je 0x4594dd
or dword [ebp - 0x18], 0x10
jmp 0x459555
push 3
push dword [ebp + 8]
push 0x4887c0
call fcn.00427f14
add esp, 0xc
test al, al
je 0x45950c
or dword [ebp - 0x18], 0x10
add dword [ebp + 8], 6
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042ed5c
pop ecx
pop ecx
jmp 0x459555
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push str._O:N
call fcn.0042df66
add esp, 0xc
test al, al
je 0x45952c
mov dword [ebp - 0x2c], 0x20
jmp 0x459555
push 0xffffffffffffffff
lea eax, [ebp + 8]
push eax
push str._O:_N
call fcn.0042df66
add esp, 0xc
test al, al
je 0x459561
mov dword [ebp - 0x2c], 0x60
jmp 0x459555
or dword [ebp - 8], 1
jmp 0x459555
or dword [ebp - 8], edi
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x459431
mov eax, dword [ebp - 0x2c]
or dword [ebp - 0x18], eax
lea ecx, [ebp - 0x40]
call fcn.0042c3f7
mov edi, 0x480934
push edi
lea ecx, [ebp - 0x1c]
call fcn.004361de
push edi
lea ecx, [ebp - 4]
call fcn.004361de
push edi
lea ecx, [ebp - 0x10]
call fcn.004361de
push 1
push 0x2c
pop edi
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00440583
push ebx
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.0042e8ac
mov eax, dword [ebp - 0x40]
add esp, 0xc
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x14], eax
jne 0x459612
movzx eax, word [eax]
cmp ax, bx
je 0x459612
mov ecx, eax
mov eax, ecx
call fcn.00426fde
test al, al
jne 0x459612
cmp cx, 0x40
jne 0x4595de
mov dword [ebp - 0x34], 1
jmp 0x459603
cmp cx, 0x24
jne 0x4595ed
mov dword [ebp - 0x34], 3
jmp 0x459603
cmp cx, 0x5c
jne 0x4595f9
or dword [ebp - 0xc], 1
jmp 0x459603
cmp cx, 0x21
jne 0x459612
or dword [ebp - 0xc], 2
add dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
cmp cx, bx
jne 0x4595c4
lea eax, [ebp - 0x14]
push eax
call fcn.00426ff7
cmp dword [ebp - 0xc], ebx
pop ecx
je 0x459630
mov eax, dword [ebp - 0x14]
jmp 0x459628
inc eax
inc eax
cmp word [eax], 0x5c
je 0x459626
jmp 0x459648
cmp dword [ebp - 8], ebx
jne 0x459645
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call fcn.0040d360
pop ecx
pop ecx
jmp 0x459651
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.00436246
mov eax, dword [ebp + 8]
cmp word [eax], di
jne 0x45967a
add dword [ebp + 8], 2
push 1
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00440583
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.0042e8ac
add esp, 0xc
cmp dword [ebp - 8], ebx
jne 0x4596a8
mov eax, dword [ebp + 8]
cmp word [eax], di
jne 0x4596a8
add dword [ebp + 8], 2
push edi
lea eax, [ebp - 0x28]
push eax
push 1
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00440583
push eax
call fcn.0042eaf9
add esp, 0xc
cmp dword [ebp - 0x28], ebx
jg 0x4596b4
mov dword [ebp - 0x28], 0xfffffff8
mov eax, dword [ebp + 8]
cmp word [eax], di
je 0x4596c4
xor esi, esi
inc esi
jmp 0x459975
add dword [ebp + 8], 2
lea eax, [ebp + 8]
push eax
call fcn.00426ff7
pop ecx
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0042c51d
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
mov dword [ebp - 0x30], ebx
je 0x4596f0
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
jmp 0x4596f3
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp - 0x10]
cmp word [edi], bx
jne 0x459715
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x459715
mov dx, word [esi + 0x56]
cmp dx, word [eax]
jne 0x459715
push ebx
push ebx
push ecx
mov ecx, esi
call fcn.0042aa7a
push 0x32a
lea ecx, [ebp - 0x3c]
call fcn.0042c415
mov eax, dword [ebp - 0x3c]
and word [esi + 0x7e], 0x8b
add eax, 4
mov dword [ebp - 0x2c], eax
mov ax, word [edi]
cmp ax, bx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x4c], ebx
jne 0x45975c
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x45975c
mov dx, word [esi + 0x56]
cmp dx, word [ecx]
mov dword [ebp - 0x14], 0x100
je 0x45975f
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], bx
je 0x459778
cmp ax, bx
jne 0x459778
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x38], 1
je 0x45977b
mov dword [ebp - 0x38], ebx
test byte [ebp - 8], 2
je 0x45988b
mov edi, 0x4975e4
push edi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push ebx
push dword [ebp - 4]
mov ecx, esi
call fcn.0040f12a
cmp eax, ebx
jne 0x4597b8
push edi
mov dword [ebp - 0x4c], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x459940
push 0xffffffffffffffff
push dword [eax]
lea ecx, [ebp - 0x2c]
call fcn.0042c51d
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x2c]
mov dword [ebp + 8], edi
mov dword [ebp - 0x44], ebx
jmp 0x459875
test byte [esi + 0x7e], 0xef
jne 0x45987e
lea eax, [ebp + 8]
mov dword [ebp - 0x48], edi
call fcn.0040edc9
push dword [ebp - 0x48]
mov edi, dword [ebp + 8]
mov ax, word [edi]
push dword [ebp - 0x1c]
mov ecx, esi
mov word [ebp - 0x34], ax
mov word [edi], bx
call fcn.0042af0d
cmp word [ebp - 0x34], 0xd
jne 0x45981b
cmp word [edi + 2], 0xa
jne 0x459821
add edi, 4
jmp 0x459823
cmp word [ebp - 0x34], bx
je 0x459826
inc edi
inc edi
mov dword [ebp + 8], edi
inc dword [ebp + 0x10]
cmp dword [ebp - 0x14], ebx
je 0x45984d
mov eax, dword [ebp - 0x20]
add eax, 2
push 0x480934
mov dword [ebp - 0x30], eax
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00452eee
jmp 0x459864
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
je 0x459864
push dword [ebp + 0x14]
mov ecx, esi
push ebx
push dword [ebp + 0xc]
push eax
call fcn.00420c52
mov ax, word [esi + 0x7e]
test ah, 1
je 0x459875
and ax, 0xfeff
mov word [esi + 0x7e], ax
cmp word [edi], bx
jne 0x4597d9
lea ecx, [ebp - 0x44]
call fcn.0042704a
jmp 0x459940
cmp dword [ebp - 8], 1
jne 0x4599a6
mov eax, dword [ebp - 4]
cmp word [eax], bx
mov edi, eax
mov dword [ebp + 8], edi
mov dword [ebp - 0x2c], ebx
je 0x459940
test byte [esi + 0x7e], 0xef
jne 0x459940
lea eax, [ebp + 8]
push eax
call fcn.00403c2d
mov eax, dword [ebp + 8]
pop ecx
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0042c51d
lea eax, [ebp + 8]
push eax
call fcn.00426ff7
pop ecx
push dword [ebp - 0x2c]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.0042af0d
inc dword [ebp + 0x10]
cmp dword [ebp - 0x14], ebx
je 0x45990c
mov eax, dword [ebp - 0x20]
add eax, 2
push 0x480934
mov dword [ebp - 0x30], eax
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00452eee
jmp 0x459923
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
je 0x459923
push dword [ebp + 0x14]
mov ecx, esi
push ebx
push dword [ebp + 0xc]
push eax
call fcn.00420c52
mov ax, word [esi + 0x7e]
test ah, 1
je 0x459934
and ax, 0xfeff
mov word [esi + 0x7e], ax
mov edi, dword [ebp + 8]
cmp word [edi], bx
jne 0x4598a9
lea ecx, [ebp - 0x2c]
call fcn.0042704a
and word [esi + 0x7e], 0x8b
cmp dword [ebp - 0x38], ebx
je 0x459962
push dword [ebp - 0x1c]
push dword [ebp + 0x10]
push esi
call fcn.0042e3da
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.0042704a
lea ecx, [ebp - 0x3c]
call fcn.0042704a
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x10]
call fcn.0042704a
lea ecx, [ebp - 4]
call fcn.0042704a
lea ecx, [ebp - 0x1c]
call fcn.0042704a
lea ecx, [ebp - 0x40]
call fcn.0042704a
lea ecx, [ebp - 0x58]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp - 4]
call fcn.0040ce49
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00436246
mov eax, dword [ebp - 4]
cmp word [eax], bx
je 0x459948
cmp dword [ebp - 0xc], ebx
je 0x459a21
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
mov word [edi + 2], bx
mov word [edi], bx
push edi
mov word [eax + 2], bx
push 0x324
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov al, byte [ebp - 0xc]
and al, 2
mov byte [ebp + 0xb], al
mov eax, edi
cmp word [eax], bx
mov dword [ebp - 8], edi
je 0x459a0a
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
jne 0x4599f7
cmp byte [ebp + 0xb], bl
je 0x459a1c
mov eax, dword [ebp - 8]
mov dword [ebp + 8], eax
mov edi, eax
jmp 0x459acb
mov eax, dword [ebp - 0x2c]
jmp 0x459a12
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], ebx
jne 0x459a40
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
jne 0x459a40
cmp dword [ebp - 0x38], ebx
je 0x459948
cmp dword [ebp - 0x44], ebx
je 0x459a64
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [ecx]
cmp ax, bx
je 0x459a64
cmp word [ecx + 2], 0x3a
jne 0x459a64
push eax
call fcn.0046bfe7
test eax, eax
pop ecx
je 0x459ac2
lea ecx, [ebp + 8]
call fcn.0042c3f7
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x24]
call fcn.00434c96
add esp, 0xc
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push dword [ebp - 0x48]
mov ecx, esi
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.00458fd6
add dword [ebp + 0x10], eax
mov ax, word [esi + 0x7e]
test ah, 1
je 0x459aba
and ax, 0xfeff
mov word [esi + 0x7e], ax
lea ecx, [ebp + 8]
call fcn.0042704a
cmp dword [ebp - 0xc], ebx
je 0x459948
cmp word [edi], bx
je 0x459948
cmp dword [ebp - 0x28], ebx
je 0x459948
test byte [esi + 0x7e], 0xef
jne 0x459948
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x24]
call fcn.0042c51d
push dword [ebp - 4]
lea ecx, [ebp - 0x24]
call fcn.0042c465
test byte [ebp - 0xc], 2
je 0x459b1f
dec edi
dec edi
jmp 0x459b15
lea eax, [edi - 2]
cmp word [eax], bx
je 0x459a2a
mov edi, eax
cmp edi, dword [ebp - 0x2c]
ja 0x459b07
jmp 0x459a2a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
jmp 0x459a2a