Function at 0x412450
Capabilities:
Get disk size

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bc2d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3e8
mov eax, dword [0x55e904]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x34c], eax
push str.acceptprotocolopt
lea ecx, [eax + 0x2c]
mov dword [ebp - 0x344], 0
call fcn.004a2dd0
mov ecx, eax
call fcn.004bacb0
test al, al
jne 0x4126c2
push 0x100
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f05a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x80
push str.MsgBox_accept_protocol
push 0x80
push eax
push 0
call fcn.004f914e
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call fcn.004a3890
mov edx, eax
add esp, 4
test edx, edx
jne 0x412528
lea eax, [ebp - 0x218]
push eax
push eax
call fcn.004a2a00
lea eax, [ebp - 0x218]
push eax
call fcn.004a3890
add esp, 0xc
mov edx, eax
sub esp, 0x18
mov ecx, edx
mov esi, esp
mov dword [ebp - 0x344], esp
lea edi, [ecx + 2]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412550
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004039a0
push 0x100
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004f05a0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x80
push str.MsgBox_error
push 0x80
push eax
push 0
call fcn.004f914e
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call fcn.004a3890
mov esi, eax
add esp, 4
test esi, esi
jne 0x4125d8
lea eax, [ebp - 0x118]
push eax
push eax
call fcn.004a2a00
lea eax, [ebp - 0x118]
push eax
call fcn.004a3890
add esp, 0xc
mov esi, eax
sub esp, 0x18
mov ecx, esi
mov edx, esp
mov dword [ebp - 0x340], esp
lea edi, [ecx + 2]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412600
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004039a0
sub esp, 0x28
mov byte [ebp - 4], 1
mov eax, esp
lea ecx, [ebp - 0x3b0]
mov dword [eax + 0x24], 0
call fcn.0040a500
add esp, 0x28
mov esi, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34c]
call fcn.004aa7b0
mov edx, esi
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.004199e0
mov ecx, dword [ebp - 0x374]
add esp, 0x30
test ecx, ecx
je 0x41267f
mov edx, dword [ecx]
lea eax, [ebp - 0x398]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x374], 0
mov edx, dword [ebp - 0x39c]
cmp edx, 8
jb 0x412e76
mov ecx, dword [ebp - 0x3b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412e6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e9a
jmp 0x412e6c
push 0x56528c
lea ecx, [ebp - 0x364]
call fcn.00403900
lea ecx, [ebp - 0x364]
mov dword [ebp - 4], 4
call fcn.0040d9e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x350]
cmp edx, 8
jb 0x41272b
mov ecx, dword [ebp - 0x364]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412721
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e9f
push edx
push ecx
call fcn.004ee8e8
add esp, 8
push 0x56528c
lea ecx, [ebp - 0x364]
call fcn.00403900
lea ecx, [ebp - 0x364]
mov dword [ebp - 4], 5
call fcn.0040dab0
test al, al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x350]
sete al
mov byte [ebp - 0x339], al
cmp edx, 8
jb 0x4127a5
mov ecx, dword [ebp - 0x364]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412795
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ea4
push edx
push ecx
call fcn.004ee8e8
mov al, byte [ebp - 0x339]
add esp, 8
test al, al
je 0x41295a
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004f05a0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x80
push str.MsgBox_error_path
push 0x80
push eax
push 0
call fcn.004f914e
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call fcn.004a3890
mov edx, eax
add esp, 4
test edx, edx
jne 0x412816
lea eax, [ebp - 0x118]
push eax
push eax
call fcn.004a2a00
lea eax, [ebp - 0x118]
push eax
call fcn.004a3890
add esp, 0xc
mov edx, eax
sub esp, 0x18
mov ecx, edx
mov esi, esp
mov dword [ebp - 0x334], esp
lea edi, [ecx + 2]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412840
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004039a0
push 0x100
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 6
push 0
push eax
call fcn.004f05a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x80
push str.MsgBox_error
push 0x80
push eax
push 0
call fcn.004f914e
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call fcn.004a3890
mov esi, eax
add esp, 4
test esi, esi
jne 0x4128c8
lea eax, [ebp - 0x218]
push eax
push eax
call fcn.004a2a00
lea eax, [ebp - 0x218]
push eax
call fcn.004a3890
add esp, 0xc
mov esi, eax
sub esp, 0x18
mov ecx, esi
mov edx, esp
mov dword [ebp - 0x344], esp
lea edi, [ecx + 2]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4128f0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004039a0
sub esp, 0x28
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0x3b0]
mov dword [eax + 0x24], 0
call fcn.0040a500
add esp, 0x28
mov esi, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x34c]
call fcn.004aa7b0
mov edx, esi
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.004199e0
mov ecx, dword [ebp - 0x374]
add esp, 0x30
test ecx, ecx
je 0x41267f
jmp 0x412661
push 0x56528c
lea ecx, [ebp - 0x364]
call fcn.00403900
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x364]
mov ecx, 3
mov dword [ebp - 0x330], 0
cmp dword [ebp - 0x354], ecx
mov dword [ebp - 0x320], 0
cmovb ecx, dword [ebp - 0x354]
cmp dword [ebp - 0x350], 8
push ecx
cmovae eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x330]
push eax
mov dword [ebp - 0x31c], 7
call fcn.004039a0
cmp dword [ebp - 0x31c], 8
lea ecx, [ebp - 0x338]
push 0
mov eax, 0x3c
xorps xmm0, xmm0
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x330]
cmovae eax, dword [ebp - 0x330]
push 0
push ecx
push eax
movq qword [ebp - 0x338], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x412a4f
mov edx, dword [ebp - 0x31c]
cmp edx, 8
jb 0x412a42
mov ecx, dword [ebp - 0x330]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412a38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e9a
push edx
push ecx
call fcn.004ee8e8
add esp, 8
xorps xmm0, xmm0
movsd qword [ebp - 0x348], xmm0
jmp 0x412ab0
mov edx, dword [ebp - 0x334]
mov ecx, dword [ebp - 0x338]
call fcn.004eee70
mulsd xmm0, qword [0x54f5d8]
mov edx, dword [ebp - 0x31c]
movsd qword [ebp - 0x348], xmm0
cmp edx, 8
jb 0x412ab0
mov ecx, dword [ebp - 0x330]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412aa6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e9a
push edx
push ecx
call fcn.004ee8e8
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x350]
cmp edx, 8
jb 0x412af7
mov ecx, dword [ebp - 0x364]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412aed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e9a
push edx
push ecx
call fcn.004ee8e8
add esp, 8
movsd xmm0, qword [0x54f628]
comisd xmm0, xmmword [ebp - 0x348]
jbe 0x412bba
push 0x56528c
lea ecx, [ebp - 0x364]
call fcn.00403900
push 0xc
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x364]
push str.dnplayer.exe
mov dword [ebp - 0x344], 0x7d
call fcn.00403b00
mov dword [ebp - 0x330], 0
xor ecx, ecx
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x330], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x320], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, 0xff
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x330]
push eax
call fcn.00433ec0
add esp, 4
mov byte [ebp - 0x339], 1
test al, al
je 0x412bc1
mov byte [ebp - 0x339], 0
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x340]
test al, 2
je 0x412c3e
mov edx, dword [ebp - 0x31c]
and eax, 0xfffffffd
mov dword [ebp - 0x340], eax
cmp edx, 8
jb 0x412c21
mov ecx, dword [ebp - 0x330]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e9a
push edx
push ecx
call fcn.004ee8e8
mov eax, dword [ebp - 0x340]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 7
mov word [ebp - 0x330], cx
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x412c89
mov edx, dword [ebp - 0x350]
cmp edx, 8
jb 0x412c89
mov ecx, dword [ebp - 0x364]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412e9a
push edx
push ecx
call fcn.004ee8e8
add esp, 8
cmp byte [ebp - 0x339], 0
je 0x412e7a
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004f05a0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x80
push str.MsgBox_disk_notEnough
push 0x80
push eax
push 0
call fcn.004f914e
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call fcn.004a3890
mov edx, eax
add esp, 4
test edx, edx
jne 0x412cff
lea eax, [ebp - 0x118]
push eax
push eax
call fcn.004a2a00
lea eax, [ebp - 0x118]
push eax
call fcn.004a3890
add esp, 0xc
mov edx, eax
sub esp, 0x18
mov ecx, edx
mov esi, esp
mov dword [ebp - 0x334], esp
lea edi, [ecx + 2]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412d23
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004039a0
push 0x100
lea eax, [ebp - 0x318]
mov dword [ebp - 4], 0xd
push 0
push eax
call fcn.004f05a0
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x80
push str.MsgBox_error
push 0x80
push eax
push 0
call fcn.004f914e
add esp, 0x14
lea eax, [ebp - 0x318]
push eax
call fcn.004a3890
mov esi, eax
add esp, 4
test esi, esi
jne 0x412dab
lea eax, [ebp - 0x318]
push eax
push eax
call fcn.004a2a00
lea eax, [ebp - 0x318]
push eax
call fcn.004a3890
add esp, 0xc
mov esi, eax
sub esp, 0x18
mov ecx, esi
mov edx, esp
mov dword [ebp - 0x344], esp
lea edi, [ecx + 2]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412dd0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004039a0
sub esp, 0x28
mov byte [ebp - 4], 0xe
mov eax, esp
lea ecx, [ebp - 0x3f8]
mov dword [eax + 0x24], 0
call fcn.0040a500
add esp, 0x28
mov esi, eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x34c]
call fcn.004aa7b0
mov edx, esi
mov byte [ebp - 4], 0x10
mov ecx, eax
call fcn.004199e0
mov ecx, dword [ebp - 0x3bc]
add esp, 0x30
test ecx, ecx
je 0x412e4f
mov edx, dword [ecx]
lea eax, [ebp - 0x3e0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x3bc], 0
mov edx, dword [ebp - 0x3e4]
cmp edx, 8
jb 0x412e76
mov ecx, dword [ebp - 0x3f8]
lea edx, [edx*2 + 2]
jmp 0x41269b
push edx
push ecx
call fcn.004ee8e8
add esp, 8
xor al, al
jmp 0x412e7c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ee450
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004f8e2c
call fcn.004f8e2c
call fcn.004f8e2c
int3