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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db801
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004a8e20
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ecx, eax
mov dword [ebp - 0x22c], ecx
test ecx, ecx
jne 0x484596
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x228]
sar eax, 2
test eax, eax
je 0x4846d8
push 0x4f35d4
mov ecx, esi
call fcn.004751c0
mov esi, dword [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x484572
mov edi, dword [ebp - 0x224]
cmp esi, edi
je 0x48453f
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x484532
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x484518
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x220]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x484568
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x484a25
push ecx
push esi
call fcn.004a42a7
add esp, 8
mov ebx, dword [ebp - 0x234]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x224]
mov esi, dword [ebp - 0x228]
cmp esi, edi
je 0x4845d3
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4845c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x4845a6
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
cmp word [ebp - 0x218], 0
lea edi, [ebp - 0x218]
mov dword [ebp - 0x224], esi
je 0x4846d8
lea ecx, [ecx]
mov eax, edi
lea edx, [ebp - 0x218]
sub eax, edx
sar eax, 1
cmp eax, ecx
jae 0x4846d8
call fcn.004762a0
mov ecx, eax
test ecx, ecx
je 0x484a1b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push edi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00475eb0
test al, al
jne 0x48465e
test edi, edi
jne 0x48463d
xor ecx, ecx
jmp 0x484651
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484642
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x21c]
call fcn.00476770
mov ebx, dword [ebp - 0x224]
mov esi, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp ebx, dword [ebp - 0x220]
je 0x484690
lea eax, [esi - 0x10]
push eax
call fcn.00475f90
add eax, 0x10
add esp, 4
mov dword [ebx], eax
add dword [ebp - 0x224], 4
jmp 0x4846a3
lea eax, [ebp - 0x21c]
push eax
push ebx
lea ecx, [ebp - 0x228]
call fcn.0047efa0
mov eax, dword [esi - 0xc]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea edi, [edi + eax*2]
or eax, 0xffffffff
add edi, 2
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4846c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [edi], 0
mov ecx, dword [ebp - 0x22c]
jne 0x4845f0
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x238], ecx
call fcn.004762a0
mov ecx, eax
test ecx, ecx
je 0x484a1b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x224]
xor edx, edx
sub ecx, dword [ebp - 0x228]
sar ecx, 2
mov byte [ebp - 4], 3
mov dword [ebp - 0x23c], edx
test ecx, ecx
je 0x48496c
jmp 0x484730
mov eax, dword [ebp - 0x228]
lea ebx, [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x250], ebx
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x21c], ecx
mov edi, dword [eax + 4]
cmp byte [edi + 0xd], 0
jne 0x4847b7
mov ebx, dword [ebx]
test ebx, ebx
je 0x484a1b
mov edx, dword [edi + 0x10]
mov ecx, ebx
mov si, word [edx]
cmp si, word [ecx]
jne 0x48478a
test si, si
je 0x484786
mov si, word [edx + 2]
cmp si, word [ecx + 2]
jne 0x48478a
add edx, 4
add ecx, 4
test si, si
jne 0x484764
xor ecx, ecx
jmp 0x48478f
sbb ecx, ecx
or ecx, 1
shr ecx, 0x1f
test cl, cl
je 0x4847a1
mov edi, dword [edi + 8]
mov ecx, dword [ebp - 0x21c]
jmp 0x4847ab
mov ecx, edi
mov edi, dword [edi]
mov dword [ebp - 0x21c], ecx
cmp byte [edi + 0xd], 0
je 0x484757
mov ebx, dword [ebp - 0x250]
cmp byte [ecx + 0xd], 0
jne 0x48480e
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x484a1b
mov edx, dword [ebx]
lea ebx, [ebx]
mov si, word [edx]
cmp si, word [ecx]
jne 0x4847f6
test si, si
je 0x4847f2
mov si, word [edx + 2]
cmp si, word [ecx + 2]
jne 0x4847f6
add edx, 4
add ecx, 4
test si, si
jne 0x4847d0
xor ecx, ecx
jmp 0x4847fb
sbb ecx, ecx
or ecx, 1
shr ecx, 0x1f
test cl, cl
jne 0x48480e
cmp dword [ebp - 0x21c], eax
jne 0x484942
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jl 0x484942
push 0x4e18f8
push eax
call fcn.004a95c0
mov ecx, eax
add esp, 8
mov eax, dword [ebx]
test ecx, ecx
je 0x484839
sub ecx, eax
sar ecx, 1
cmp ecx, 1
je 0x484866
cmp dword [eax - 0xc], 0
jl 0x484942
push 0x4e18f0
push eax
call fcn.004a95c0
add esp, 8
test eax, eax
je 0x484942
sub eax, dword [ebx]
sar eax, 1
cmp eax, 1
jne 0x484942
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x244]
push 3
push eax
call fcn.0047c920
push 0
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x24c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov edx, dword [ebp - 0x244]
mov esi, eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4848c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x484942
mov ecx, dword [ebp - 0x248]
cmp dword [ebp - 0x238], ecx
ja 0x484942
mov eax, dword [ebp - 0x24c]
jb 0x4848ea
cmp dword [ebp - 0x22c], eax
jae 0x484942
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx]
mov dword [ebp - 0x238], ecx
cmp dword [eax - 0xc], 0
jl 0x484a2a
mov ax, word [eax]
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
xor eax, eax
mov word [ebp - 0x22e], ax
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484920
sub ecx, edx
lea eax, [ebp - 0x230]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00476770
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x23c]
sub eax, dword [ebp - 0x228]
inc edx
sar eax, 2
mov dword [ebp - 0x23c], edx
cmp edx, eax
jb 0x484730
mov eax, dword [ebp - 0x240]
lea esi, [eax - 0x10]
push esi
call fcn.00475f90
mov ebx, dword [ebp - 0x234]
add eax, 0x10
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48499c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x484578
mov edi, dword [ebp - 0x224]
cmp esi, edi
je 0x4849e7
jmp 0x4849c0
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4849da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x4849c0
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x220]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x484a0c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x484a25
push ecx
push esi
call fcn.004a42a7
add esp, 8
jmp 0x484578
push 0x80004005
call fcn.00475e90
call fcn.004aba7f
push 0x80070057
call fcn.00475e90
int3