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

Disassembly:
push 0xffffffffffffffff
push 0x4eb29d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x51d5ec
mov dword [esp + 0x24], edi
mov dword [esp + 0x50], 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0xe0]
push eax
mov dword [esp + 0xdc], 0
call fcn.00443850
push 0xc
call fcn.00449130
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x47a1f9
mov word [ebx], 0
push 0x2a
call fcn.00449130
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x47a210
mov word [eax], 0
push 2
call fcn.00449130
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x47a227
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 0x47a3b7
lea ebx, [ebx]
mov eax, esi
mov ecx, str._userfree
mov edx, 8
lea esp, [esp]
movzx ebx, word [eax]
movsx ebp, byte [ecx]
or ebx, 0x20
or ebp, 0x20
add eax, 2
inc ecx
cmp ebp, ebx
jne 0x47a2cb
dec edx
jns 0x47a260
mov ax, word [eax]
cmp ax, 9
jb 0x47a286
cmp ax, 0xd
jbe 0x47a291
cmp ax, 0x20
je 0x47a291
test ax, ax
jne 0x47a2cb
add esi, 0x12
mov dword [esp + 0xe0], esi
je 0x47a2c1
lea ecx, [ecx]
mov ax, word [esi]
cmp ax, 9
jb 0x47a2af
cmp ax, 0xd
jbe 0x47a2b5
cmp ax, 0x20
jne 0x47a2ba
add esi, 2
jmp 0x47a2a0
mov dword [esp + 0xe0], esi
mov byte [esp + 0x12], 0
jmp 0x47a3a9
push 8
push esi
push str._userall
call fcn.00444970
add esp, 0xc
test al, al
je 0x47a31b
add esi, 0x10
mov dword [esp + 0xe0], esi
je 0x47a311
jmp 0x47a2f0
mov ax, word [esi]
cmp ax, 9
jb 0x47a2ff
cmp ax, 0xd
jbe 0x47a305
cmp ax, 0x20
jne 0x47a30a
add esi, 2
jmp 0x47a2f0
mov dword [esp + 0xe0], esi
mov byte [esp + 0x12], 1
jmp 0x47a3a9
push 5
push esi
push str._free
call fcn.00444970
add esp, 0xc
test al, al
je 0x47a350
lea ecx, [esp + 0xe0]
add esi, 0xa
push ecx
mov dword [esp + 0xe4], esi
call fcn.00443850
add esp, 4
mov byte [esp + 0x12], 2
jmp 0x47a3a2
push 4
push esi
push str._raw
call fcn.00444970
add esp, 0xc
test al, al
je 0x47a385
lea edx, [esp + 0xe0]
add esi, 8
push edx
mov dword [esp + 0xe4], esi
call fcn.00443850
add esp, 4
mov byte [esp + 0x13], 1
jmp 0x47a3a2
lea eax, [esp + 0xe0]
push eax
call fcn.00417de5
lea ecx, [esp + 0xe4]
push ecx
call fcn.00443850
add esp, 8
mov esi, dword [esp + 0xe0]
cmp word [esi], 0x2d
je 0x47a250
mov ebx, dword [esp + 0x14]
push 0x3d
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xe8]
push eax
call fcn.0044c770
add esp, 0xc
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004166b6
mov edx, dword [esp + 0xe0]
cmp word [edx], 0x3d
jne 0x47a410
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.0044c770
mov ebx, dword [esp + 0x20]
add esp, 0xc
mov esi, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], 0
push esi
mov byte [esp + 0xdc], 4
call fcn.00422077
add esp, 4
push eax
lea ecx, [esp + 0x18]
call fcn.00456630
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [esp + 0xd8], 3
je 0x47a45a
mov edx, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push 0
push edx
call edi
mov ebp, dword [esp + 0x18]
xor ecx, ecx
mov cx, word [ebp]
test cx, cx
mov eax, ebp
je 0x47a4aa
jmp 0x47a470
cmp cx, 0x2c
je 0x47a484
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x47a470
jmp 0x47a4aa
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.0044c770
add esp, 0xc
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x20]
push edx
call fcn.004166b6
push ebp
call fcn.004201fa
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
add esp, 4
cmp word [ebp], 0
jne 0x47a4d8
cmp word [esi], 0
je 0x47a4de
cmp word [ebx], 0
jne 0x47a51b
test esi, esi
je 0x47a4f0
mov eax, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push 0
push eax
call edi
mov ecx, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push 0
push ecx
call edi
test ebx, ebx
je 0x47a8a3
mov edx, dword [0x51d3c8]
add ebx, 0xfffffff8
push ebx
push 0
push edx
call edi
jmp 0x47a8a3
push ebx
push 0x4f05c4
call fcn.00444a10
add esp, 8
test al, al
je 0x47a5b4
push esi
mov eax, 0x196
call fcn.00449190
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x1c], esi
je 0x47a552
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.0044fe50
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
add esp, 0x14
push ebx
push ebp
call fcn.00448be0
mov ecx, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push 0
push ecx
call edi
mov edx, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push 0
push edx
call edi
test ebx, ebx
je 0x47a987
mov eax, dword [0x51d3c8]
add ebx, 0xfffffff8
push ebx
push 0
push eax
call edi
jmp 0x47a987
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
mov esi, eax
lea eax, [esi + esi + 0x34]
push ebx
call fcn.00449190
mov ebx, eax
xor eax, eax
add esp, 4
cmp ebx, eax
mov dword [esp + 0x14], ebx
je 0x47a5dd
mov word [ebx + esi*2 + 0x32], ax
mov cl, byte [esp + 0x12]
test cl, cl
jl 0x47a6f3
cmp esi, 1
jne 0x47a5fc
cmp word [ebx], 0x2e
je 0x47a612
mov word [ebx + 2], 0x3a
jmp 0x47a608
cmp esi, 2
jne 0x47a612
cmp word [ebx + 2], 0x3a
jne 0x47a612
mov word [ebx + 4], 0x5c
mov word [ebx + 6], ax
mov ecx, dword [0x4fa788]
mov dx, word [0x4fa78c]
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 0x47a68b
movsx ecx, byte [esp + 0x12]
mov edx, dword [esp + ecx*8 + 0x34]
mov eax, dword [esp + ecx*8 + 0x30]
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004a48e0
add esp, 0xc
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x50]
push edx
push ebp
call fcn.00448be0
xor eax, eax
cmp esi, edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
sete al
mov edi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47a6c0
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov edx, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push 0
push edx
call esi
test ebx, ebx
je 0x47a6e1
mov eax, dword [0x51d3c8]
add ebx, 0xfffffff8
push ebx
push 0
push eax
call esi
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x47a994
push str..C:
call edi
lea esi, [eax + eax + 2]
lea ecx, [esi + 2]
push ecx
call fcn.00449130
mov ecx, esi
mov edx, ecx
mov ebp, eax
shr ecx, 2
mov esi, str..C:
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x48], ebp
mov ax, word [ebx]
mov word [ebp + 8], ax
xor eax, eax
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
movzx esi, word [eax]
movsx edi, byte [ecx]
or esi, 0x20
or edi, 0x20
add eax, 2
inc ecx
cmp edi, esi
jne 0x47a8b8
dec edx
jns 0x47a757
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.00417e55
mov eax, dword [esp + 0x18]
cmp word [eax], 0
mov esi, dword [esp + 0x28]
je 0x47a7bd
push 1
push 0
push esi
call fcn.0044f4b0
add esp, 0xc
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x1c]
cmp word [edi], 0
je 0x47a7d6
push esi
push 0
call fcn.0044b680
add esp, 8
mov dword [esp + 0x24], eax
test esi, esi
mov byte [esp + 0xd8], 5
je 0x47a7ee
cmp esi, 0xffffffff
je 0x47a7ee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
push ecx
lea esi, [esp + 0x94]
mov edx, esi
push 0x4f1f24
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp word [eax], 0
je 0x47a822
mov ecx, eax
push esi
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00448be0
cmp word [edi], 0
je 0x47a855
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x94]
push 0x4f1f24
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x24]
push edi
call fcn.00448be0
add ebp, 0xfffffff8
cmp word [esi], 0
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
push 0
jne 0x47a94d
mov edx, dword [0x51d3c8]
push edx
call esi
mov eax, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push 0
push eax
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [0x51d3c8]
add ecx, 0xfffffff8
push ecx
push 0
push edx
call esi
mov eax, dword [0x51d3c8]
add ebx, 0xfffffff8
push ebx
push 0
push eax
call esi
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x47a994
push 8
push ebx
push str.Device_
call fcn.004449d0
add esp, 0xc
test al, al
jne 0x47a772
mov ecx, dword [esp + 0x18]
xor eax, eax
mov word [ebx + 2], 0x3a
mov word [ebx + 6], ax
mov word [ebx + 4], ax
cmp word [ecx], ax
je 0x47a8f4
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
jmp 0x47a8f8
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
cmp word [edi], 0
jne 0x47a919
mov al, byte [esp + 0x13]
test al, al
jne 0x47a928
cmp esi, 2
je 0x47a919
cmp esi, 3
je 0x47a919
cmp esi, 5
jne 0x47a928
push 0
push ebp
call fcn.0044b680
add esp, 8
mov dword [esp + 0x24], eax
mov cl, byte [esp + 0x13]
or eax, 0xffffffff
test cl, cl
jne 0x47a937
mov eax, dword [esp + 0x24]
push eax
lea edx, [esp + 0x94]
push edx
push esi
call fcn.004472a0
mov esi, eax
jmp 0x47a808
mov ecx, dword [0x51d3c8]
push ecx
call esi
mov edx, dword [0x51d3c8]
add edi, 0xfffffff8
push edi
push 0
push edx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov edx, dword [0x51d3c8]
add ebx, 0xfffffff8
push ebx
push 0
push edx
call esi
push 0x51d5ec
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