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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
push 0x4ad684
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
call fcn.00430961
pop ecx
push 5
lea ecx, [ebp - 8]
call fcn.00435d80
push 0x14
lea ecx, [ebp - 0x14]
call fcn.00435d80
lea ecx, [ebp - 0x10]
call fcn.00435d62
xor ebx, ebx
mov byte [ebp - 1], 0xff
mov byte [ebp - 2], bl
mov byte [ebp - 9], bl
jmp 0x4585b6
push 9
lea eax, [ebp + 8]
push eax
push 0x49c834
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x45851d
mov byte [ebp - 1], bl
jmp 0x4585b6
push 8
lea eax, [ebp + 8]
push eax
push 0x49c828
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x45853a
mov byte [ebp - 1], 1
jmp 0x4585b6
push 5
lea eax, [ebp + 8]
push eax
push 0x49c820
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x458557
mov byte [ebp - 1], 2
jmp 0x4585b6
push 4
lea eax, [ebp + 8]
push eax
push 0x49c194
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x458574
mov byte [ebp - 2], 1
jmp 0x4585b6
push 2
lea eax, [ebp + 8]
push eax
push 0x49c048
call fcn.00437ad0
add esp, 0xc
test al, al
je 0x458591
mov byte [ebp - 9], 1
jmp 0x4585b6
push 6
lea eax, [ebp + 8]
push eax
push 0x49c5e0
call fcn.00437ad0
add esp, 0xc
test al, al
jne 0x45862e
lea eax, [ebp + 8]
push eax
call fcn.0040459d
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x4584fe
push 0x3d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004386e6
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00402c4d
mov eax, dword [ebp + 8]
cmp word [eax], 0x3d
jne 0x458601
add dword [ebp + 8], 2
push 0x2c
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004386e6
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
call fcn.0040eec0
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.0044042b
lea ecx, [ebp + 8]
call fcn.0043092f
mov esi, dword [ebp - 0x14]
xor ecx, ecx
mov cx, word [esi]
mov eax, esi
jmp 0x45864e
push 8
push ebx
push 0x4ad220
call fcn.0047fd70
add esp, 0xc
jmp 0x4589d2
cmp cx, 0x2c
je 0x458655
inc eax
inc eax
mov cx, word [eax]
cmp cx, bx
jne 0x458643
jmp 0x45866f
mov word [eax], bx
inc eax
inc eax
mov dword [ebp + 8], eax
push 0x2c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004386e6
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00402c4d
push esi
call fcn.0040cd10
cmp word [esi], bx
pop ecx
jne 0x458690
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
je 0x458698
mov edi, dword [ebp - 8]
cmp word [edi], bx
jne 0x4586a0
xor ebx, ebx
inc ebx
jmp 0x4589d2
push edi
push 0x49bd48
call fcn.004318e1
test al, al
pop ecx
pop ecx
je 0x4586e7
push 0xca
lea ecx, [ebp - 0x10]
call fcn.00435da9
mov eax, dword [ebp - 0x10]
push ebx
push ebx
push 1
mov word [eax], bx
lea eax, [ebp - 8]
push 0x7c
push eax
call fcn.0043b2bf
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push dword [ebp - 8]
push esi
call fcn.00435749
jmp 0x4589d2
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
lea eax, [esi + 0x19]
push eax
lea ecx, [ebp - 8]
call fcn.00435da9
cmp byte [ebp - 1], bl
jl 0x4587da
cmp esi, 1
mov edx, dword [ebp - 8]
jne 0x458723
cmp word [edx], 0x2e
je 0x458739
mov word [edx + 2], 0x3a
mov word [edx + 4], 0x5c
mov word [edx + 6], bx
cmp esi, 2
jne 0x458739
cmp word [edx + 2], 0x3a
jne 0x458739
mov word [edx + 4], 0x5c
mov word [edx + 6], bx
mov esi, 0x49817c
lea edi, [ebp - 0xfc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
push 0x1d
pop ecx
lea edi, [ebp - 0xf6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
mov esi, eax
cmp esi, ebx
je 0x458799
movsx eax, byte [ebp - 1]
push dword [ebp + eax*8 - 0x3c]
push dword [ebp + eax*8 - 0x40]
lea eax, [ebp - 0xfc]
push eax
call fcn.004752ea
add esp, 0xc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xfc]
push eax
push dword [ebp - 0x14]
call fcn.00435749
lea ecx, [ebp - 0x10]
call fcn.0043092f
lea ecx, [ebp - 0x14]
call fcn.0043092f
lea ecx, [ebp - 8]
call fcn.0043092f
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4589f7
mov esi, dword [ebp - 8]
mov ax, word [esi]
cmp ax, 0x61
jb 0x4587ef
cmp ax, 0x7a
ja 0x4587ef
and byte [esi], 0xdf
push 0x49c80c
lea ecx, [ebp - 0x28]
call fcn.004403c3
mov ax, word [esi]
mov edi, dword [ebp - 0x28]
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
push 4
mov word [edi + 8], ax
push esi
mov word [edi + 0xe], bx
push 0x49c804
mov word [edi + 0xc], bx
mov dword [ebp - 0x24], esi
mov dword [ebp + 8], 0x800
call fcn.004318b1
add esp, 0xc
test al, al
jne 0x4588e4
push 8
push esi
push 0x49b1ec
call fcn.004318b1
add esp, 0xc
test al, al
jne 0x4588e4
cmp byte [ebp - 9], bl
mov word [esi + 2], 0x3a
mov word [esi + 6], bx
mov word [esi + 4], bx
mov dword [ebp - 0x24], edi
je 0x458889
mov ax, word [esi]
cmp ax, 0x41
jb 0x4588e4
cmp ax, 0x42
ja 0x4588e4
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
jne 0x4588e4
movzx esi, word [esi]
sub esi, 0x41
jmp 0x4588e7
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
je 0x45889c
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov esi, eax
jmp 0x45889f
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
jne 0x4588bb
cmp byte [ebp - 2], bl
jne 0x4588c7
cmp esi, 2
je 0x4588bb
cmp esi, 3
je 0x4588bb
cmp esi, 5
jne 0x4588c7
push ebx
push edi
call fcn.00437883
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
or eax, 0xffffffff
cmp byte [ebp - 2], bl
jne 0x4588d2
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.00433f25
mov edi, eax
jmp 0x458983
mov esi, dword [ebp + 8]
cmp esi, 1
mov dword [ebp + 8], ebx
mov edi, 0x80000000
jg 0x458904
lea eax, [esi*4 + 0x4ad220]
cmp dword [eax], ebx
je 0x458904
movsx eax, word [eax]
jmp 0x458932
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
je 0x458935
push ebx
push 0x20000000
push 3
push ebx
push 3
push edi
push dword [ebp - 0x24]
lea ecx, [ebp + 8]
call fcn.004045f9
push esi
push 1
push ebx
push dword [ebp + 8]
call fcn.0043a9c5
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
je 0x458967
cmp dword [ebp + 8], ebx
jne 0x458959
push ebx
push 0x20000000
push 3
push ebx
push 3
push edi
push dword [ebp - 0x24]
lea ecx, [ebp + 8]
call fcn.004045f9
push dword [ebp + 8]
push ebx
call fcn.00437883
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp + 8]
call fcn.00402b27
push dword [ebp - 0x20]
lea edi, [ebp - 0x80]
mov eax, edi
push 0x494e3c
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp word [eax], bx
je 0x458998
mov ecx, dword [ebp - 0x18]
push edi
push eax
call fcn.00435749
mov esi, dword [ebp - 0x10]
cmp word [esi], bx
je 0x4589c2
push dword [ebp - 0x1c]
lea eax, [ebp - 0x80]
push 0x494e3c
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.00435749
cmp word [edi], bx
jne 0x4589ca
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x28]
call fcn.0043092f
lea ecx, [ebp - 0x10]
call fcn.0043092f
lea ecx, [ebp - 0x14]
call fcn.0043092f
lea ecx, [ebp - 8]
call fcn.0043092f
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8