Function at 0x412040
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 0x51b67d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3e8
mov eax, dword [0x55f904]
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.004a28a0
mov ecx, eax
call fcn.004ba780
test al, al
jne 0x4122b2
push 0x100
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f0080
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x80
push str.MsgBox_accept_protocol
push 0x80
push eax
push 0
call fcn.004f8c2e
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call fcn.004a3360
mov edx, eax
add esp, 4
test edx, edx
jne 0x412118
lea eax, [ebp - 0x218]
push eax
push eax
call fcn.004a24d0
lea eax, [ebp - 0x218]
push eax
call fcn.004a3360
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 0x412140
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403460
push 0x100
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004f0080
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x80
push str.MsgBox_error
push 0x80
push eax
push 0
call fcn.004f8c2e
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call fcn.004a3360
mov esi, eax
add esp, 4
test esi, esi
jne 0x4121c8
lea eax, [ebp - 0x118]
push eax
push eax
call fcn.004a24d0
lea eax, [ebp - 0x118]
push eax
call fcn.004a3360
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 0x4121f0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403460
sub esp, 0x28
mov byte [ebp - 4], 1
mov eax, esp
lea ecx, [ebp - 0x3b0]
mov dword [eax + 0x24], 0
call fcn.0040a100
add esp, 0x28
mov esi, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34c]
call fcn.004aa290
mov edx, esi
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.00419440
mov ecx, dword [ebp - 0x374]
add esp, 0x30
test ecx, ecx
je 0x41226f
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 0x412a66
mov ecx, dword [ebp - 0x3b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412a5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412a8a
jmp 0x412a5c
push 0x56628c
lea ecx, [ebp - 0x364]
call fcn.004033c0
lea ecx, [ebp - 0x364]
mov dword [ebp - 4], 4
call fcn.0040d5d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x350]
cmp edx, 8
jb 0x41231b
mov ecx, dword [ebp - 0x364]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412311
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412a8f
push edx
push ecx
call fcn.004ee3ca
add esp, 8
push 0x56628c
lea ecx, [ebp - 0x364]
call fcn.004033c0
lea ecx, [ebp - 0x364]
mov dword [ebp - 4], 5
call fcn.0040d6a0
test al, al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x350]
sete al
mov byte [ebp - 0x339], al
cmp edx, 8
jb 0x412395
mov ecx, dword [ebp - 0x364]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412385
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412a94
push edx
push ecx
call fcn.004ee3ca
mov al, byte [ebp - 0x339]
add esp, 8
test al, al
je 0x41254a
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004f0080
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x80
push str.MsgBox_error_path
push 0x80
push eax
push 0
call fcn.004f8c2e
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call fcn.004a3360
mov edx, eax
add esp, 4
test edx, edx
jne 0x412406
lea eax, [ebp - 0x118]
push eax
push eax
call fcn.004a24d0
lea eax, [ebp - 0x118]
push eax
call fcn.004a3360
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 0x412430
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403460
push 0x100
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 6
push 0
push eax
call fcn.004f0080
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x80
push str.MsgBox_error
push 0x80
push eax
push 0
call fcn.004f8c2e
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call fcn.004a3360
mov esi, eax
add esp, 4
test esi, esi
jne 0x4124b8
lea eax, [ebp - 0x218]
push eax
push eax
call fcn.004a24d0
lea eax, [ebp - 0x218]
push eax
call fcn.004a3360
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 0x4124e0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403460
sub esp, 0x28
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0x3b0]
mov dword [eax + 0x24], 0
call fcn.0040a100
add esp, 0x28
mov esi, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x34c]
call fcn.004aa290
mov edx, esi
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.00419440
mov ecx, dword [ebp - 0x374]
add esp, 0x30
test ecx, ecx
je 0x41226f
jmp 0x412251
push 0x56628c
lea ecx, [ebp - 0x364]
call fcn.004033c0
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.00403460
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 0x41263f
mov edx, dword [ebp - 0x31c]
cmp edx, 8
jb 0x412632
mov ecx, dword [ebp - 0x330]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412628
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412a8a
push edx
push ecx
call fcn.004ee3ca
add esp, 8
xorps xmm0, xmm0
movsd qword [ebp - 0x348], xmm0
jmp 0x4126a0
mov edx, dword [ebp - 0x334]
mov ecx, dword [ebp - 0x338]
call fcn.004ee950
mulsd xmm0, qword [0x54f928]
mov edx, dword [ebp - 0x31c]
movsd qword [ebp - 0x348], xmm0
cmp edx, 8
jb 0x4126a0
mov ecx, dword [ebp - 0x330]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412696
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412a8a
push edx
push ecx
call fcn.004ee3ca
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x350]
cmp edx, 8
jb 0x4126e7
mov ecx, dword [ebp - 0x364]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4126dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412a8a
push edx
push ecx
call fcn.004ee3ca
add esp, 8
movsd xmm0, qword [0x54f978]
comisd xmm0, xmmword [ebp - 0x348]
jbe 0x4127aa
push 0x56628c
lea ecx, [ebp - 0x364]
call fcn.004033c0
push 0xc
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x364]
push str.dnplayer.exe
mov dword [ebp - 0x344], 0x7d
call fcn.004035c0
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.004339f0
add esp, 4
mov byte [ebp - 0x339], 1
test al, al
je 0x4127b1
mov byte [ebp - 0x339], 0
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x340]
test al, 2
je 0x41282e
mov edx, dword [ebp - 0x31c]
and eax, 0xfffffffd
mov dword [ebp - 0x340], eax
cmp edx, 8
jb 0x412811
mov ecx, dword [ebp - 0x330]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412801
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412a8a
push edx
push ecx
call fcn.004ee3ca
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 0x412879
mov edx, dword [ebp - 0x350]
cmp edx, 8
jb 0x412879
mov ecx, dword [ebp - 0x364]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41286f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412a8a
push edx
push ecx
call fcn.004ee3ca
add esp, 8
cmp byte [ebp - 0x339], 0
je 0x412a6a
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004f0080
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x80
push str.MsgBox_disk_notEnough
push 0x80
push eax
push 0
call fcn.004f8c2e
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call fcn.004a3360
mov edx, eax
add esp, 4
test edx, edx
jne 0x4128ef
lea eax, [ebp - 0x118]
push eax
push eax
call fcn.004a24d0
lea eax, [ebp - 0x118]
push eax
call fcn.004a3360
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 0x412913
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403460
push 0x100
lea eax, [ebp - 0x318]
mov dword [ebp - 4], 0xd
push 0
push eax
call fcn.004f0080
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x80
push str.MsgBox_error
push 0x80
push eax
push 0
call fcn.004f8c2e
add esp, 0x14
lea eax, [ebp - 0x318]
push eax
call fcn.004a3360
mov esi, eax
add esp, 4
test esi, esi
jne 0x41299b
lea eax, [ebp - 0x318]
push eax
push eax
call fcn.004a24d0
lea eax, [ebp - 0x318]
push eax
call fcn.004a3360
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 0x4129c0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403460
sub esp, 0x28
mov byte [ebp - 4], 0xe
mov eax, esp
lea ecx, [ebp - 0x3f8]
mov dword [eax + 0x24], 0
call fcn.0040a100
add esp, 0x28
mov esi, eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x34c]
call fcn.004aa290
mov edx, esi
mov byte [ebp - 4], 0x10
mov ecx, eax
call fcn.00419440
mov ecx, dword [ebp - 0x3bc]
add esp, 0x30
test ecx, ecx
je 0x412a3f
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 0x412a66
mov ecx, dword [ebp - 0x3f8]
lea edx, [edx*2 + 2]
jmp 0x41228b
push edx
push ecx
call fcn.004ee3ca
add esp, 8
xor al, al
jmp 0x412a6c
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.004edf30
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004f890c
call fcn.004f890c
call fcn.004f890c
int3