Function at 0x43c40c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8ab94c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], ebx
mov eax, dword [ecx]
mov dword [ebp - 0x30], ecx
call dword [eax + 4]
movzx eax, al
test eax, eax
je 0x43c45a
mov eax, 7
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0x30]
lea ebx, [eax + 0x20]
mov ecx, ebx
mov dword [eax + 8], 0
call fcn.004e53f4
mov ecx, dword [ebp + 8]
call fcn.004e2de4
cmp eax, 1
je 0x43c493
mov eax, 1
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
call fcn.004e2d98
mov eax, DirectSoundCreate
mov edx, 3
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
call fcn.004e3f3c
movzx eax, al
test eax, eax
jne 0x43c4d0
mov eax, 0x200
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
jmp 0x43c54f
lea ecx, [ebp - 0x2c]
call fcn.0041cbf8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push 1
push eax
call fcn.004e3ea8
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
push dword [ebp - 0x28]
push 0x9f6a8c
push eax
call fcn.00406768
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406220
lea ebx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push edx
push ecx
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], eax
imul eax, dword [ebp - 0x18]
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00406220
mov al, byte [ebp + 0x14]
test al, al
je 0x43c585
xor esi, esi
mov al, byte [0x9ec1b8]
test al, al
mov dword [ebp - 0x34], esi
je 0x43c56c
mov eax, 0x20000000
mov dword [ebp - 0x34], eax
mov al, byte [0x979498]
test al, al
jne 0x43c57c
or dword [ebp - 0x34], 0x10000000
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x30], 1
jmp 0x43c58d
mov eax, 0x8000000
mov dword [ebp - 0x34], eax
mov al, byte [ebp + 0xc]
test al, al
je 0x43c59c
mov eax, 0xc0000000
mov dword [ebp - 0x38], eax
mov al, byte [ebp + 0x10]
test al, al
je 0x43c5ab
mov eax, 2
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
push 0
push eax
call fcn.004e5490
mov dword [ebp - 4], 2
xor ecx, ecx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
push ecx
mov ebx, dword [ebp - 0x38]
push eax
push edx
push ecx
push 1
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406220
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x18]
cmp edx, 0xffffffff
je 0x43c613
xor eax, eax
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 8], eax
call fcn.0043d09c
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14