Function at 0x47a16c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x47a174
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x47a90a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 1
lea eax, [esi + 0x30]
mov edx, 0x47a92c
call fcn.00407154
lea eax, [esi + 0x2c]
mov edx, 0x47a944
call fcn.00407154
cmp dword [esi + 0x1c], 0
jle 0x47a264
lea ecx, [ebp - 0x14]
mov edx, 0x47a968
mov eax, dword [0x4a0800]
call fcn.0046df78
lea ecx, [ebp - 0x18]
mov edx, 0x47a984
mov eax, dword [0x4a0800]
call fcn.0046df78
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004071e0
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
mov eax, dword [esi + 0x1c]
cdq
push edx
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
shrd eax, edx, 0x14
shr edx, 0x14
cmp edx, dword [esp + 4]
jne 0x47a217
cmp eax, dword [esp]
pop edx
pop eax
jae 0x47a21f
jmp 0x47a8c5
pop edx
pop eax
jl 0x47a8c5
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
call fcn.004071e0
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
mov eax, dword [esi + 0x1c]
cdq
push edx
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
shrd eax, edx, 0x14
shr edx, 0x14
cmp edx, dword [esp + 4]
jne 0x47a25c
cmp eax, dword [esp]
pop edx
pop eax
jae 0x47a264
jmp 0x47a8c5
pop edx
pop eax
jl 0x47a8c5
lea eax, [esi + 0x2c]
mov edx, 0x47a9ac
call fcn.00407154
cmp byte [esi + 0x20], 0
je 0x47a284
call fcn.00452d14
test al, al
je 0x47a8c5
lea eax, [esi + 0x2c]
mov edx, 0x47a9cc
call fcn.00407154
mov ebx, dword [esi + 0x24]
test ebx, ebx
je 0x47a2a5
call fcn.00452d24
cmp ebx, eax
jg 0x47a8c5
lea eax, [esi + 0x2c]
mov edx, 0x47a9e8
call fcn.00407154
mov eax, dword [esi + 0x28]
call fcn.00408954
test eax, eax
jle 0x47a342
xor ebx, ebx
mov eax, dword [esi + 0x28]
call fcn.00408954
dec eax
test eax, eax
jl 0x47a325
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], 0
push ebp
mov eax, dword [esi + 0x28]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + edx*4]
lea edx, [ebp - 0x50]
call fcn.0040f87c
mov eax, dword [ebp - 0x50]
call fcn.0047a0cc
pop ecx
push ebp
mov eax, dword [ebp - 4]
mov edx, dword [0x4a0800]
mov edx, dword [edx + 0x8c]
call fcn.004078b4
sete al
call fcn.0047a160
pop ecx
test al, al
je 0x47a31d
mov bl, 1
jmp 0x47a325
inc dword [ebp - 0x20]
dec dword [ebp - 0x40]
jne 0x47a2dc
test bl, bl
jne 0x47a342
lea eax, [esi + 0x30]
mov edx, dword [0x4a0800]
mov edx, dword [edx + 0x8c]
call fcn.00407154
jmp 0x47a8c5
cmp word [ebp + 0xa], 0
jne 0x47a353
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], 0x47ab28
lea eax, [esi + 0x2c]
mov edx, 0x47a9fc
call fcn.00407154
mov byte [ebp - 0x39], 1
mov byte [ebp - 0x3a], 0
mov eax, dword [esi]
call fcn.0040895c
test eax, eax
jl 0x47a3da
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], 0
push ebp
push 0xffffffffffffffff
lea eax, [ebp - 0x54]
push eax
mov eax, dword [esi]
mov edx, dword [ebp - 0x20]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x54]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
mov eax, dword [ebp - 0x54]
call fcn.0047a0cc
pop ecx
push ebp
mov eax, dword [ebp - 4]
call fcn.00454e9c
call fcn.0047a160
pop ecx
test al, al
je 0x47a3ce
lea eax, [esi + 0x30]
mov edx, dword [esi]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edx + ecx*4]
call fcn.00407154
mov byte [ebp - 0x3a], 1
cmp byte [esi + 0x14], 0
je 0x47a3da
jmp 0x47a3d2
mov byte [ebp - 0x39], 0
inc dword [ebp - 0x20]
dec dword [ebp - 0x40]
jne 0x47a37e
cmp byte [ebp - 0x39], 0
je 0x47a3f3
cmp byte [esi + 0x14], 0
je 0x47a3f3
lea eax, [esi + 0x30]
mov edx, 0x47aa1c
call fcn.00407154
cmp byte [ebp - 0x3a], 0
je 0x47a403
cmp byte [esi + 0x14], 0
je 0x47a8c5
cmp byte [ebp - 0x39], 0
je 0x47a413
cmp byte [esi + 0x14], 0
jne 0x47a8c5
lea eax, [esi + 0x2c]
mov edx, 0x47aa30
call fcn.00407154
mov byte [ebp - 0x39], 1
mov byte [ebp - 0x3a], 0
mov eax, dword [esi + 4]
call fcn.0040895c
test eax, eax
jl 0x47a5ac
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], 0
push ebp
push 0xffffffffffffffff
lea eax, [ebp - 0x58]
push eax
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x20]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x54]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
mov eax, dword [ebp - 0x58]
call fcn.0047a0cc
pop ecx
mov dword [ebp - 0x24], 7
mov edi, 0x49a3ac
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004071a8
mov edx, dword [ebp - 0xc]
mov eax, dword [edi]
call fcn.00407b08
mov ebx, eax
cmp ebx, 1
jle 0x47a55d
mov eax, dword [edi]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x47a4ad
mov eax, dword [ebp - 0x44]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47a4ca
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x47a4ca
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004064a4
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x47a4de
mov eax, dword [ebp - 0x48]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [edi]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x47a4fa
mov eax, dword [ebp - 0x4c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x4c]
inc ecx
mov edx, dword [ebp - 0x44]
add edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0040791c
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040791c
push ebp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call dword [edi + 4]
call fcn.0047a160
pop ecx
test al, al
je 0x47a557
lea eax, [esi + 0x30]
mov edx, dword [esi + 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edx + ecx*4]
call fcn.00407154
mov byte [ebp - 0x3a], 1
cmp byte [esi + 0x15], 0
je 0x47a569
jmp 0x47a569
mov byte [ebp - 0x39], 0
jmp 0x47a569
add edi, 8
dec dword [ebp - 0x24]
jne 0x47a471
dec ebx
jg 0x47a5a0
push ebp
mov eax, dword [ebp - 4]
call fcn.00455230
call fcn.0047a160
pop ecx
test al, al
je 0x47a59c
lea eax, [esi + 0x30]
mov edx, dword [esi + 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edx + ecx*4]
call fcn.00407154
mov byte [ebp - 0x3a], 1
cmp byte [esi + 0x15], 0
je 0x47a5ac
jmp 0x47a5a0
mov byte [ebp - 0x39], 0
inc dword [ebp - 0x20]
dec dword [ebp - 0x40]
jne 0x47a443
cmp byte [ebp - 0x39], 0
je 0x47a5c5
cmp byte [esi + 0x15], 0
je 0x47a5c5
lea eax, [esi + 0x30]
mov edx, 0x47aa1c
call fcn.00407154
cmp byte [ebp - 0x3a], 0
je 0x47a5d5
cmp byte [esi + 0x15], 0
je 0x47a8c5
cmp byte [ebp - 0x39], 0
je 0x47a5e5
cmp byte [esi + 0x15], 0
jne 0x47a8c5
lea eax, [esi + 0x2c]
mov edx, 0x47aa4c
call fcn.00407154
mov byte [ebp - 0x39], 1
mov byte [ebp - 0x3a], 0
mov eax, dword [esi + 8]
call fcn.0040895c
test eax, eax
jl 0x47a67c
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], 0
push ebp
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push eax
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x20]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x54]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00454500
mov eax, dword [ebp - 0x60]
call fcn.0047a0cc
pop ecx
push ebp
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00453f74
call fcn.0047a160
pop ecx
test al, al
je 0x47a670
lea eax, [esi + 0x30]
mov edx, dword [esi + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edx + ecx*4]
call fcn.00407154
mov byte [ebp - 0x3a], 1
cmp byte [esi + 0x16], 0
je 0x47a67c
jmp 0x47a674
mov byte [ebp - 0x39], 0
inc dword [ebp - 0x20]
dec dword [ebp - 0x40]
jne 0x47a611
cmp byte [ebp - 0x39], 0
je 0x47a695
cmp byte [esi + 0x16], 0
je 0x47a695
lea eax, [esi + 0x30]
mov edx, 0x47aa1c
call fcn.00407154
cmp byte [ebp - 0x3a], 0
je 0x47a6a5
cmp byte [esi + 0x16], 0
je 0x47a8c5
cmp byte [ebp - 0x39], 0
je 0x47a6b5
cmp byte [esi + 0x16], 0
jne 0x47a8c5
lea eax, [esi + 0x2c]
mov edx, 0x47aa60
call fcn.00407154
mov byte [ebp - 0x39], 1
mov byte [ebp - 0x3a], 0
mov eax, dword [esi + 0xc]
call fcn.0040895c
test eax, eax
jl 0x47a7b4
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], 0
push ebp
push 0xffffffffffffffff
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x54]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.00454500
mov eax, dword [ebp - 0x68]
call fcn.0047a0cc
pop ecx
cmp byte [ebp - 5], 0
je 0x47a746
mov eax, dword [ebp - 4]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0x11
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0x11
lea edx, [ebp - 0x7c]
mov ecx, 1
mov eax, 0x47aa78
call fcn.004617fc
jmp 0x47a772
mov eax, dword [ebp - 4]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0x11
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0x11
lea edx, [ebp - 0x7c]
mov ecx, 1
mov eax, 0x47aac8
call fcn.004617fc
push ebp
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00456240
call fcn.0047a160
pop ecx
test al, al
je 0x47a7a4
lea eax, [esi + 0x30]
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edx + ecx*4]
call fcn.00407154
mov byte [ebp - 0x3a], 1
cmp byte [esi + 0x17], 0
je 0x47a7b4
jmp 0x47a7a8
mov byte [ebp - 0x39], 0
inc dword [ebp - 0x20]
dec dword [ebp - 0x40]
jne 0x47a6e5
cmp byte [ebp - 0x39], 0
je 0x47a7cd
cmp byte [esi + 0x17], 0
je 0x47a7cd
lea eax, [esi + 0x30]
mov edx, 0x47aa1c
call fcn.00407154
cmp byte [ebp - 0x3a], 0
je 0x47a7dd
cmp byte [esi + 0x17], 0
je 0x47a8c5
cmp byte [ebp - 0x39], 0
je 0x47a7ed
cmp byte [esi + 0x17], 0
jne 0x47a8c5
lea eax, [esi + 0x2c]
mov edx, 0x47ab1c
call fcn.00407154
mov byte [ebp - 0x39], 1
mov byte [ebp - 0x3a], 0
mov eax, dword [esi + 0x10]
call fcn.0040895c
test eax, eax
jl 0x47a87c
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], 0
push ebp
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
push eax
mov eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x20]
mov edx, dword [eax + edx*4]
lea ecx, [ebp - 0x54]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
mov eax, dword [ebp - 0x80]
call fcn.0047a0cc
pop ecx
push ebp
mov eax, dword [ebp - 4]
call fcn.00454984
test eax, eax
setne al
call fcn.0047a160
pop ecx
test al, al
je 0x47a870
lea eax, [esi + 0x30]
mov edx, dword [esi + 0x10]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edx + ecx*4]
call fcn.00407154
mov byte [ebp - 0x3a], 1
cmp byte [esi + 0x18], 0
je 0x47a87c
jmp 0x47a874
mov byte [ebp - 0x39], 0
inc dword [ebp - 0x20]
dec dword [ebp - 0x40]
jne 0x47a819
cmp byte [ebp - 0x39], 0
je 0x47a895
cmp byte [esi + 0x18], 0
je 0x47a895
lea eax, [esi + 0x30]
mov edx, 0x47aa1c
call fcn.00407154
cmp byte [ebp - 0x3a], 0
je 0x47a8a1
cmp byte [esi + 0x18], 0
je 0x47a8c5
cmp byte [ebp - 0x39], 0
je 0x47a8ad
cmp byte [esi + 0x18], 0
jne 0x47a8c5
lea eax, [esi + 0x2c]
xor edx, edx
call fcn.00407154
lea eax, [esi + 0x30]
xor edx, edx
call fcn.00407154
mov byte [ebp - 0x19], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a911
lea eax, [ebp - 0x80]
call fcn.00407144
lea eax, [ebp - 0x6c]
mov edx, 4
call fcn.0040714c
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.0040714c
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0040714c
lea eax, [ebp - 4]
call fcn.00407144
ret