Function at 0x4139a0
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 0x51f063
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x430
mov eax, dword [0x562904]
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.004a5eb0
mov ecx, eax
call fcn.004bdd80
test al, al
jne 0x413c12
push 0x100
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f3680
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x80
push str.MsgBox_accept_protocol
push 0x80
push eax
push 0
call fcn.004fc22e
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call fcn.004a6970
mov edx, eax
add esp, 4
test edx, edx
jne 0x413a78
lea eax, [ebp - 0x218]
push eax
push eax
call fcn.004a5ae0
lea eax, [ebp - 0x218]
push eax
call fcn.004a6970
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 0x413aa0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004046e0
push 0x100
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004f3680
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x80
push str.MsgBox_error
push 0x80
push eax
push 0
call fcn.004fc22e
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call fcn.004a6970
mov esi, eax
add esp, 4
test esi, esi
jne 0x413b28
lea eax, [ebp - 0x118]
push eax
push eax
call fcn.004a5ae0
lea eax, [ebp - 0x118]
push eax
call fcn.004a6970
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 0x413b50
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004046e0
sub esp, 0x28
mov byte [ebp - 4], 1
mov eax, esp
lea ecx, [ebp - 0x3f8]
mov dword [eax + 0x24], 0
call fcn.004081a0
add esp, 0x28
mov esi, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34c]
call fcn.004ad890
mov edx, esi
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.0041b1a0
mov ecx, dword [ebp - 0x3bc]
add esp, 0x30
test ecx, ecx
je 0x413bcf
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 0x4145e6
mov ecx, dword [ebp - 0x3f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4145dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41460a
jmp 0x4145dc
push 0x569294
lea ecx, [ebp - 0x37c]
call fcn.00404640
lea ecx, [ebp - 0x37c]
mov dword [ebp - 4], 4
call fcn.0040ba90
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x368]
cmp edx, 8
jb 0x413c7b
mov ecx, dword [ebp - 0x37c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413c71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41460f
push edx
push ecx
call fcn.004f19ca
add esp, 8
push 0x569294
lea ecx, [ebp - 0x37c]
call fcn.00404640
lea ecx, [ebp - 0x37c]
mov dword [ebp - 4], 5
call fcn.0040bb60
test al, al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x368]
sete al
mov byte [ebp - 0x339], al
cmp edx, 8
jb 0x413cf5
mov ecx, dword [ebp - 0x37c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413ce5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414614
push edx
push ecx
call fcn.004f19ca
mov al, byte [ebp - 0x339]
add esp, 8
test al, al
je 0x413eaa
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004f3680
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x80
push str.MsgBox_error_path
push 0x80
push eax
push 0
call fcn.004fc22e
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call fcn.004a6970
mov edx, eax
add esp, 4
test edx, edx
jne 0x413d66
lea eax, [ebp - 0x118]
push eax
push eax
call fcn.004a5ae0
lea eax, [ebp - 0x118]
push eax
call fcn.004a6970
add esp, 0xc
mov edx, eax
sub esp, 0x18
mov ecx, edx
mov esi, esp
mov dword [ebp - 0x31c], 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 0x413d90
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004046e0
push 0x100
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 6
push 0
push eax
call fcn.004f3680
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x80
push str.MsgBox_error
push 0x80
push eax
push 0
call fcn.004fc22e
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call fcn.004a6970
mov esi, eax
add esp, 4
test esi, esi
jne 0x413e18
lea eax, [ebp - 0x218]
push eax
push eax
call fcn.004a5ae0
lea eax, [ebp - 0x218]
push eax
call fcn.004a6970
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 0x413e40
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004046e0
sub esp, 0x28
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0x3f8]
mov dword [eax + 0x24], 0
call fcn.004081a0
add esp, 0x28
mov esi, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x34c]
call fcn.004ad890
mov edx, esi
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.0041b1a0
mov ecx, dword [ebp - 0x3bc]
add esp, 0x30
test ecx, ecx
je 0x413bcf
jmp 0x413bb1
push 0x569294
lea ecx, [ebp - 0x364]
call fcn.00404640
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x364]
mov ecx, 3
mov dword [ebp - 0x338], 0
cmp dword [ebp - 0x354], ecx
mov dword [ebp - 0x328], 0
cmovb ecx, dword [ebp - 0x354]
cmp dword [ebp - 0x350], 8
push ecx
cmovae eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x338]
push eax
mov dword [ebp - 0x324], 7
call fcn.004046e0
cmp dword [ebp - 0x324], 8
lea ecx, [ebp - 0x320]
push 0
mov eax, 0x1e0
xorps xmm0, xmm0
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x338]
cmovae eax, dword [ebp - 0x338]
push 0
push ecx
push eax
movq qword [ebp - 0x320], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x413f9f
mov edx, dword [ebp - 0x324]
cmp edx, 8
jb 0x413f92
mov ecx, dword [ebp - 0x338]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413f88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41460a
push edx
push ecx
call fcn.004f19ca
add esp, 8
xorps xmm0, xmm0
movsd qword [ebp - 0x348], xmm0
jmp 0x414000
mov edx, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x320]
call fcn.004f1f50
mulsd xmm0, qword [0x552ef8]
mov edx, dword [ebp - 0x324]
movsd qword [ebp - 0x348], xmm0
cmp edx, 8
jb 0x414000
mov ecx, dword [ebp - 0x338]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413ff6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41460a
push edx
push ecx
call fcn.004f19ca
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x350]
cmp edx, 8
jb 0x414047
mov ecx, dword [ebp - 0x364]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41403d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41460a
push edx
push ecx
call fcn.004f19ca
add esp, 8
movsd xmm0, qword [0x552f48]
comisd xmm0, xmmword [ebp - 0x348]
jbe 0x4141f6
push 8
xor eax, eax
mov dword [ebp - 0x364], 0
push str.ayer.exe
lea ecx, [ebp - 0x364]
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x350], 7
mov word [ebp - 0x364], ax
call fcn.004046e0
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x394]
push 4
xor eax, eax
mov dword [ebp - 0x394], 0
push str.dnpl
mov dword [ebp - 0x344], 0x1e1
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x380], 7
mov word [ebp - 0x394], ax
call fcn.004046e0
lea eax, [ebp - 0x364]
mov dword [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x394]
mov dword [ebp - 0x344], 0x1e3
push eax
push dword [ebp - 0x31c]
lea ecx, [ebp - 0x37c]
call fcn.00411b10
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x3ac]
push 0x569294
mov dword [ebp - 0x344], 0x3e7
call fcn.00404640
mov dword [ebp - 4], 0xe
lea edx, [ebp - 0x37c]
cmp dword [ebp - 0x368], 8
mov dword [ebp - 0x344], 0x7ef
cmovae edx, dword [ebp - 0x37c]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414160
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x3ac]
call fcn.00404840
mov dword [ebp - 0x338], 0
xor ecx, ecx
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x338], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x328], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, 0xfff
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x338]
push eax
call fcn.00437090
add esp, 4
mov byte [ebp - 0x339], 1
test al, al
je 0x4141fd
mov byte [ebp - 0x339], 0
mov dword [ebp - 4], 0xe
mov eax, dword [ebp - 0x340]
test al, 0x10
je 0x41427a
mov edx, dword [ebp - 0x324]
and eax, 0xffffffef
mov dword [ebp - 0x340], eax
cmp edx, 8
jb 0x41425d
mov ecx, dword [ebp - 0x338]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41424d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41460a
push edx
push ecx
call fcn.004f19ca
mov eax, dword [ebp - 0x340]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 7
mov word [ebp - 0x338], cx
mov dword [ebp - 4], 0xd
test al, 8
je 0x4142f1
mov edx, dword [ebp - 0x398]
and eax, 0xfffffff7
mov dword [ebp - 0x340], eax
cmp edx, 8
jb 0x4142d4
mov ecx, dword [ebp - 0x3ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4142c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41460a
push edx
push ecx
call fcn.004f19ca
mov eax, dword [ebp - 0x340]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x39c], 0
mov dword [ebp - 0x398], 7
mov word [ebp - 0x3ac], cx
mov dword [ebp - 4], 0xc
test al, 4
je 0x41434b
mov edx, dword [ebp - 0x368]
and eax, 0xfffffffb
mov dword [ebp - 0x340], eax
cmp edx, 8
jb 0x41434b
mov ecx, dword [ebp - 0x37c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41433b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41460a
push edx
push ecx
call fcn.004f19ca
mov eax, dword [ebp - 0x340]
add esp, 8
mov dword [ebp - 4], 0xb
test al, 2
je 0x4143a5
mov edx, dword [ebp - 0x380]
and eax, 0xfffffffd
mov dword [ebp - 0x340], eax
cmp edx, 8
jb 0x4143a5
mov ecx, dword [ebp - 0x394]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414395
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41460a
push edx
push ecx
call fcn.004f19ca
mov eax, dword [ebp - 0x340]
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x4143f0
mov edx, dword [ebp - 0x350]
cmp edx, 8
jb 0x4143f0
mov ecx, dword [ebp - 0x364]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4143e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41460a
push edx
push ecx
call fcn.004f19ca
add esp, 8
cmp byte [ebp - 0x339], 0
je 0x4145ea
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004f3680
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x80
push str.MsgBox_disk_notEnough
push 0x80
push eax
push 0
call fcn.004fc22e
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
call fcn.004a6970
mov edx, eax
add esp, 4
test edx, edx
jne 0x414466
lea eax, [ebp - 0x118]
push eax
push eax
call fcn.004a5ae0
lea eax, [ebp - 0x118]
push eax
call fcn.004a6970
add esp, 0xc
mov edx, eax
sub esp, 0x18
mov ecx, edx
mov esi, esp
mov dword [ebp - 0x31c], 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 0x414490
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004046e0
push 0x100
lea eax, [ebp - 0x318]
mov dword [ebp - 4], 0x10
push 0
push eax
call fcn.004f3680
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x80
push str.MsgBox_error
push 0x80
push eax
push 0
call fcn.004fc22e
add esp, 0x14
lea eax, [ebp - 0x318]
push eax
call fcn.004a6970
mov esi, eax
add esp, 4
test esi, esi
jne 0x414518
lea eax, [ebp - 0x318]
push eax
push eax
call fcn.004a5ae0
lea eax, [ebp - 0x318]
push eax
call fcn.004a6970
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 0x414540
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004046e0
sub esp, 0x28
mov byte [ebp - 4], 0x11
mov eax, esp
lea ecx, [ebp - 0x440]
mov dword [eax + 0x24], 0
call fcn.004081a0
add esp, 0x28
mov esi, eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x34c]
call fcn.004ad890
mov edx, esi
mov byte [ebp - 4], 0x13
mov ecx, eax
call fcn.0041b1a0
mov ecx, dword [ebp - 0x404]
add esp, 0x30
test ecx, ecx
je 0x4145bf
mov edx, dword [ecx]
lea eax, [ebp - 0x428]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x404], 0
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x4145e6
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
jmp 0x413beb
push edx
push ecx
call fcn.004f19ca
add esp, 8
xor al, al
jmp 0x4145ec
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.004f1532
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004fbf0c
call fcn.004fbf0c
call fcn.004fbf0c
int3