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

Disassembly:
push 0xffffffffffffffff
push 0x4e6e5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x5194ec
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0xe0]
push eax
mov dword [esp + 0xdc], 0
call fcn.0043f2e0
push 0xc
call fcn.00445f00
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
je 0x477839
mov word [edi], 0
push 0x2a
call fcn.00445f00
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x477850
mov word [eax], 0
push 2
call fcn.00445f00
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x477867
mov word [eax], 0
mov esi, dword [esp + 0xe0]
cmp word [esi], 0x2d
mov byte [esp + 0xd8], 3
mov byte [esp + 0x12], 0xff
mov byte [esp + 0x13], 0
jne 0x4779f7
lea ebx, [ebx]
mov eax, esi
mov ecx, str._userfree
mov edx, 8
lea esp, [esp]
movzx edi, word [eax]
movsx ebp, byte [ecx]
or edi, 0x20
or ebp, 0x20
add eax, 2
inc ecx
cmp ebp, edi
jne 0x47790b
dec edx
jns 0x4778a0
mov ax, word [eax]
cmp ax, 9
jb 0x4778c6
cmp ax, 0xd
jbe 0x4778d1
cmp ax, 0x20
je 0x4778d1
test ax, ax
jne 0x47790b
add esi, 0x12
mov dword [esp + 0xe0], esi
je 0x477901
lea ecx, [ecx]
mov ax, word [esi]
cmp ax, 9
jb 0x4778ef
cmp ax, 0xd
jbe 0x4778f5
cmp ax, 0x20
jne 0x4778fa
add esi, 2
jmp 0x4778e0
mov dword [esp + 0xe0], esi
mov byte [esp + 0x12], 0
jmp 0x4779e9
push 8
push esi
push str._userall
call fcn.004403f0
add esp, 0xc
test al, al
je 0x47795b
add esi, 0x10
mov dword [esp + 0xe0], esi
je 0x477951
jmp 0x477930
mov ax, word [esi]
cmp ax, 9
jb 0x47793f
cmp ax, 0xd
jbe 0x477945
cmp ax, 0x20
jne 0x47794a
add esi, 2
jmp 0x477930
mov dword [esp + 0xe0], esi
mov byte [esp + 0x12], 1
jmp 0x4779e9
push 5
push esi
push str._free
call fcn.004403f0
add esp, 0xc
test al, al
je 0x477990
lea ecx, [esp + 0xe0]
add esi, 0xa
push ecx
mov dword [esp + 0xe4], esi
call fcn.0043f2e0
add esp, 4
mov byte [esp + 0x12], 2
jmp 0x4779e2
push 4
push esi
push str._raw
call fcn.004403f0
add esp, 0xc
test al, al
je 0x4779c5
lea edx, [esp + 0xe0]
add esi, 8
push edx
mov dword [esp + 0xe4], esi
call fcn.0043f2e0
add esp, 4
mov byte [esp + 0x13], 1
jmp 0x4779e2
lea eax, [esp + 0xe0]
push eax
call fcn.0041676d
lea ecx, [esp + 0xe4]
push ecx
call fcn.0043f2e0
add esp, 8
mov esi, dword [esp + 0xe0]
cmp word [esi], 0x2d
je 0x477890
mov edi, dword [esp + 0x14]
push 0x3d
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xe8]
push eax
call fcn.00449370
add esp, 0xc
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.004152c8
mov edx, dword [esp + 0xe0]
cmp word [edx], 0x3d
jne 0x477a50
push 0x2c
lea eax, [esp + 0x18]
mov ebx, edx
push eax
lea ecx, [esp + 0xe8]
add ebx, 2
push ecx
mov dword [esp + 0xec], ebx
call fcn.00449370
mov edi, dword [esp + 0x20]
add esp, 0xc
mov esi, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], 0
push esi
mov byte [esp + 0xdc], 4
call fcn.0042063d
add esp, 4
push eax
lea ecx, [esp + 0x18]
call fcn.004574e0
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [esp + 0xd8], 3
je 0x477a9a
mov edx, dword [0x51927c]
add esi, 0xfffffff8
push esi
push 0
push edx
call ebx
mov ebp, dword [esp + 0x18]
xor ecx, ecx
mov cx, word [ebp]
test cx, cx
mov eax, ebp
je 0x477aea
jmp 0x477ab0
cmp cx, 0x2c
je 0x477ac4
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x477ab0
jmp 0x477aea
mov word [eax], 0
add eax, 2
mov dword [esp + 0xe0], eax
push 0x2c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xe8]
push ecx
call fcn.00449370
add esp, 0xc
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x20]
push edx
call fcn.004152c8
push ebp
call fcn.0041e7c0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
add esp, 4
cmp word [ebp], 0
jne 0x477b18
cmp word [esi], 0
je 0x477b1e
cmp word [edi], 0
jne 0x477b5b
test esi, esi
je 0x477b30
mov eax, dword [0x51927c]
add esi, 0xfffffff8
push esi
push 0
push eax
call ebx
mov ecx, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push 0
push ecx
call ebx
test edi, edi
je 0x477efc
mov edx, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push edx
call ebx
jmp 0x477efc
push edi
push 0x4ec53c
call fcn.00440490
add esp, 8
test al, al
je 0x477bf4
push esi
mov eax, 0x196
call fcn.00445f60
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x1c], esi
je 0x477b92
mov word [esi + 0x194], 0
push 0
push 0
push 1
lea eax, [esp + 0x20]
push 0x7c
push eax
mov word [esi], 0
call fcn.0044ef30
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
add esp, 0x14
push edi
push ebp
call fcn.00444550
mov ecx, dword [0x51927c]
add esi, 0xfffffff8
push esi
push 0
push ecx
call ebx
mov edx, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push 0
push edx
call ebx
test edi, edi
je 0x477fde
mov eax, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push eax
call ebx
jmp 0x477fde
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + esi + 0x34]
push edi
call fcn.00445f60
mov ebx, eax
add esp, 4
xor eax, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x477c1b
mov word [ebx + esi*2 + 0x32], ax
mov cl, byte [esp + 0x12]
test cl, cl
jl 0x477d43
cmp esi, 1
jne 0x477c3a
cmp word [ebx], 0x2e
je 0x477c50
mov word [ebx + 2], 0x3a
jmp 0x477c46
cmp esi, 2
jne 0x477c50
cmp word [ebx + 2], 0x3a
jne 0x477c50
mov word [ebx + 4], 0x5c
mov word [ebx + 6], ax
mov ecx, dword [0x4f62dc]
mov dx, word [0x4f62e0]
xor eax, eax
mov dword [esp + 0x50], ecx
mov word [esp + 0x54], dx
mov ecx, 0xe
lea edi, [esp + 0x56]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x3c]
mov dword [esp + 0x48], eax
push edx
lea eax, [esp + 0x38]
push eax
xor edi, edi
push ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
cmp esi, edi
je 0x477cdb
movsx ecx, byte [esp + 0x12]
mov edx, dword [esp + ecx*8 + 0x34]
mov eax, dword [esp + ecx*8 + 0x30]
push edx
push eax
push str._I64u
lea ecx, [esp + 0x5c]
push 0x28
push ecx
call fcn.004c1f3f
add esp, 0x14
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x50]
push eax
push ebp
call fcn.00444550
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp esi, edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
sete cl
test eax, eax
mov edi, ecx
je 0x477d10
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push 0
push eax
call esi
test ebx, ebx
je 0x477d31
mov ecx, dword [0x51927c]
add ebx, 0xfffffff8
push ebx
push 0
push ecx
call esi
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x477feb
push str..C:
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea edx, [esi + 2]
push edx
call fcn.00445f00
mov ecx, esi
mov ebp, eax
mov eax, ecx
shr ecx, 2
mov esi, str..C:
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x48], ebp
mov cx, word [ebx]
xor eax, eax
mov word [ebp + 8], cx
mov word [ebp + 0xe], ax
mov word [ebp + 0xc], ax
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0xd8], 5
mov eax, ebx
mov ecx, str.._
mov edx, 3
jmp 0x477db0
movzx esi, word [eax]
movsx edi, byte [ecx]
or esi, 0x20
or edi, 0x20
add eax, 2
inc ecx
cmp edi, esi
jne 0x477f11
dec edx
jns 0x477db0
mov dword [esp + 0x28], 0
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0xf4], 6
call fcn.004167bc
mov ecx, dword [esp + 0x18]
cmp word [ecx], 0
mov esi, dword [esp + 0x28]
je 0x477e16
push 1
push 0
push esi
call fcn.0044c0b0
add esp, 0xc
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x1c]
cmp word [edi], 0
je 0x477e2f
push esi
push 0
call fcn.00448290
add esp, 8
mov dword [esp + 0x24], eax
test esi, esi
mov byte [esp + 0xd8], 5
je 0x477e47
cmp esi, 0xffffffff
je 0x477e47
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x2c]
push edx
lea esi, [esp + 0x94]
mov eax, esi
push 0x4edd14
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp word [ecx], 0
je 0x477e7b
mov edx, ecx
mov ecx, dword [esp + 0x20]
push esi
push edx
call fcn.00444550
cmp word [edi], 0
je 0x477eae
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x94]
push 0x4edd14
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x90]
push edx
push edi
call fcn.00444550
add ebp, 0xfffffff8
cmp word [esi], 0
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
push 0
jne 0x477fa6
mov eax, dword [0x51927c]
push eax
call esi
mov ecx, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push ecx
call esi
mov edx, dword [esp + 0x18]
mov eax, dword [0x51927c]
add edx, 0xfffffff8
push edx
push 0
push eax
call esi
mov ecx, dword [0x51927c]
add ebx, 0xfffffff8
push ebx
push 0
push ecx
call esi
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x477feb
push 8
push ebx
push str.Device_
call fcn.00440450
add esp, 0xc
test al, al
jne 0x477dcb
mov edx, dword [esp + 0x18]
xor eax, eax
mov word [ebx + 2], 0x3a
mov word [ebx + 6], ax
mov word [ebx + 4], ax
cmp word [edx], ax
je 0x477f4d
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
jmp 0x477f51
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
cmp word [edi], 0
jne 0x477f72
mov al, byte [esp + 0x13]
test al, al
jne 0x477f81
cmp esi, 2
je 0x477f72
cmp esi, 3
je 0x477f72
cmp esi, 5
jne 0x477f81
push 0
push ebp
call fcn.00448290
add esp, 8
mov dword [esp + 0x24], eax
mov cl, byte [esp + 0x13]
or eax, 0xffffffff
test cl, cl
jne 0x477f90
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x94]
push eax
push esi
call fcn.00442c30
mov esi, eax
jmp 0x477e61
mov edx, dword [0x51927c]
push edx
call esi
mov eax, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push eax
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [0x51927c]
add ecx, 0xfffffff8
push ecx
push 0
push edx
call esi
mov eax, dword [0x51927c]
add ebx, 0xfffffff8
push ebx
push 0
push eax
call esi
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc
ret 8