Function at 0x540a00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x12c]
sub esp, 0x17c
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x12c], 0x114
mov dword [esp], ebx
mov dword [ebp - 0x154], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
sub esp, 4
cmp dword [ebp - 0x128], 5
jbe 0x540e33
lea eax, [ebp - 0x138]
mov dword [esp + 8], 0xa
mov dword [esp + 4], esi
mov dword [ebp - 0x15c], eax
mov dword [esp], eax
call dword [method.QString.number_int__int_]
lea esi, [ebp - 0x150]
mov dword [esp + 8], 0x2a
mov dword [esp + 4], str.netsh_advfirewall_firewall_add_rule_name_
mov edi, dword [method.QString.fromUtf8_helper_char_const__int_]
mov dword [ebp - 0x16c], esi
mov dword [esp], esi
call edi
mov eax, dword [ebp + 8]
mov ecx, esi
mov esi, dword [method.QString.append_QString_const_]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x150]
sub esp, 4
mov dword [ebp - 0x14c], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x541410
mov dword [esp + 8], 1
mov dword [esp + 4], 0x69290f
mov dword [esp], ebx
call edi
lea eax, [ebp - 0x14c]
mov dword [esp], ebx
mov dword [ebp - 0x168], eax
mov ecx, eax
call esi
mov eax, dword [ebp - 0x12c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x540b00
cmp edx, 0xffffffff
je 0x540b19
lock sub dword [eax], 1
mov eax, dword [ebp - 0x12c]
jne 0x540b19
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x541420
mov dword [esp + 8], 0x1e
mov dword [esp + 4], str._dirin_actionallow_protocol
mov dword [esp], ebx
call edi
lea eax, [ebp - 0x148]
mov dword [esp], ebx
mov dword [ebp - 0x160], eax
mov ecx, eax
call esi
mov eax, dword [ebp - 0x12c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x541230
cmp edx, 0xffffffff
je 0x540b83
lock sub dword [eax], 1
mov eax, dword [ebp - 0x12c]
je 0x541230
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x144], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x541490
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x144]
mov dword [ebp - 0x170], eax
mov dword [esp], ecx
mov ecx, eax
call esi
mov edx, dword [ebp - 0x144]
sub esp, 4
mov dword [ebp - 0x13c], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x541480
mov dword [esp + 8], 0xb
mov dword [esp + 4], str._localport
mov dword [esp], ebx
call edi
lea edi, [ebp - 0x13c]
mov dword [esp], ebx
mov ecx, edi
call esi
mov eax, dword [ebp - 0x12c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x541210
cmp edx, 0xffffffff
je 0x540c1a
lock sub dword [eax], 1
mov eax, dword [ebp - 0x12c]
je 0x541210
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x140], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x541470
mov ecx, dword [ebp - 0x15c]
lea eax, [ebp - 0x140]
mov dword [ebp - 0x164], eax
mov dword [esp], ecx
mov ecx, eax
call esi
mov eax, dword [ebp - 0x164]
lea esi, [ebp - 0x154]
sub esp, 4
mov ecx, esi
mov dword [esp], eax
call dword [method.QString.operator_QString_const_]
mov eax, dword [ebp - 0x140]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x541300
cmp edx, 0xffffffff
je 0x540c8f
lock sub dword [eax], 1
mov eax, dword [ebp - 0x140]
je 0x541300
mov eax, dword [ebp - 0x13c]
mov edx, dword [eax]
test edx, edx
je 0x5412e0
cmp edx, 0xffffffff
je 0x540cb4
lock sub dword [eax], 1
mov eax, dword [ebp - 0x13c]
je 0x5412e0
mov eax, dword [ebp - 0x144]
mov edx, dword [eax]
test edx, edx
je 0x5412c0
cmp edx, 0xffffffff
je 0x540cd9
lock sub dword [eax], 1
mov eax, dword [ebp - 0x144]
je 0x5412c0
mov eax, dword [ebp - 0x148]
mov edx, dword [eax]
test edx, edx
je 0x541250
cmp edx, 0xffffffff
je 0x540cfe
lock sub dword [eax], 1
mov eax, dword [ebp - 0x148]
je 0x541250
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax]
test edx, edx
je 0x541279
cmp edx, 0xffffffff
je 0x540d23
lock sub dword [eax], 1
mov eax, dword [ebp - 0x14c]
je 0x541279
mov eax, dword [ebp - 0x150]
mov edx, dword [eax]
test edx, edx
je 0x5412a2
cmp edx, 0xffffffff
je 0x540d48
lock sub dword [eax], 1
mov eax, dword [ebp - 0x150]
je 0x5412a2
mov eax, dword [ebp - 0x138]
mov edx, dword [eax]
test edx, edx
je 0x541160
cmp edx, 0xffffffff
je 0x540d70
lock sub dword [eax], 1
mov eax, dword [ebp - 0x138]
je 0x541160
lea esi, [esi]
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x5411e0
mov eax, dword [ebp - 0x15c]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00507080
mov eax, dword [ebp - 0x12c]
mov edx, dword [eax]
test edx, edx
je 0x5411c1
cmp edx, 0xffffffff
je 0x540dd4
lock sub dword [eax], 1
mov eax, dword [ebp - 0x12c]
je 0x5411c1
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x134]
mov ecx, dword [edx]
test eax, eax
sete bl
test ecx, ecx
je 0x5411a3
cmp ecx, 0xffffffff
je 0x540e04
lock sub dword [edx], 1
mov edx, dword [ebp - 0x130]
je 0x5411a3
mov edx, dword [ebp - 0x154]
mov ecx, dword [edx]
test ecx, ecx
je 0x541180
cmp ecx, 0xffffffff
je 0x540e29
lock sub dword [edx], 1
mov edx, dword [ebp - 0x154]
je 0x541180
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x148]
mov dword [esp + 8], 0xa
mov dword [esp + 4], esi
mov dword [ebp - 0x160], eax
mov dword [esp], eax
call dword [method.QString.number_int__int_]
lea esi, [ebp - 0x150]
mov dword [esp + 8], 0x1f
mov dword [esp + 4], str.netsh_firewall_add_portopening
mov edi, dword [method.QString.fromUtf8_helper_char_const__int_]
mov dword [ebp - 0x16c], esi
mov dword [esp], esi
call edi
mov eax, dword [ebp + 0x10]
mov ecx, esi
mov esi, dword [method.QString.append_QString_const_]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x150]
sub esp, 4
mov dword [ebp - 0x14c], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x541400
mov dword [esp + 8], 1
mov dword [esp + 4], 0x692960
mov dword [esp], ebx
call edi
lea eax, [ebp - 0x14c]
mov dword [esp], ebx
mov dword [ebp - 0x168], eax
mov ecx, eax
call esi
mov eax, dword [ebp - 0x12c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x540ef0
cmp edx, 0xffffffff
je 0x540f09
lock sub dword [eax], 1
mov eax, dword [ebp - 0x12c]
jne 0x540f09
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x144], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x541440
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x144]
mov dword [ebp - 0x170], eax
mov dword [esp], ecx
mov ecx, eax
call esi
mov edx, dword [ebp - 0x144]
sub esp, 4
mov dword [ebp - 0x140], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x541460
mov dword [esp + 8], 2
mov dword [esp + 4], 0x692962
mov dword [esp], ebx
call edi
lea eax, [ebp - 0x140]
mov dword [esp], ebx
mov dword [ebp - 0x164], eax
mov ecx, eax
call esi
mov eax, dword [ebp - 0x12c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x5413e0
cmp edx, 0xffffffff
je 0x540fa9
lock sub dword [eax], 1
mov eax, dword [ebp - 0x12c]
je 0x5413e0
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x138], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x541430
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x138]
mov dword [ebp - 0x15c], eax
mov dword [esp], ecx
mov ecx, eax
call esi
mov edx, dword [ebp - 0x138]
sub esp, 4
mov dword [ebp - 0x13c], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x541450
mov dword [esp + 8], 1
mov dword [esp + 4], 0x69290f
mov dword [esp], ebx
call edi
lea edi, [ebp - 0x13c]
mov dword [esp], ebx
mov ecx, edi
call esi
mov eax, dword [ebp - 0x12c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x5413c0
cmp edx, 0xffffffff
je 0x541040
lock sub dword [eax], 1
mov eax, dword [ebp - 0x12c]
je 0x5413c0
lea esi, [ebp - 0x154]
mov dword [esp], edi
mov ecx, esi
call dword [method.QString.operator_QString_const_]
mov eax, dword [ebp - 0x13c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x5413a0
cmp edx, 0xffffffff
je 0x541079
lock sub dword [eax], 1
mov eax, dword [ebp - 0x13c]
je 0x5413a0
mov eax, dword [ebp - 0x138]
mov edx, dword [eax]
test edx, edx
je 0x541380
cmp edx, 0xffffffff
je 0x54109e
lock sub dword [eax], 1
mov eax, dword [ebp - 0x138]
je 0x541380
mov eax, dword [ebp - 0x140]
mov edx, dword [eax]
test edx, edx
je 0x541360
cmp edx, 0xffffffff
je 0x5410c3
lock sub dword [eax], 1
mov eax, dword [ebp - 0x140]
je 0x541360
mov eax, dword [ebp - 0x144]
mov edx, dword [eax]
test edx, edx
je 0x541340
cmp edx, 0xffffffff
je 0x5410e8
lock sub dword [eax], 1
mov eax, dword [ebp - 0x144]
je 0x541340
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax]
test edx, edx
je 0x541320
cmp edx, 0xffffffff
je 0x54110d
lock sub dword [eax], 1
mov eax, dword [ebp - 0x14c]
je 0x541320
mov eax, dword [ebp - 0x150]
mov edx, dword [eax]
test edx, edx
je 0x5411f0
cmp edx, 0xffffffff
je 0x541132
lock sub dword [eax], 1
mov eax, dword [ebp - 0x150]
je 0x5411f0
mov eax, dword [ebp - 0x148]
mov edx, dword [eax]
test edx, edx
je 0x541160
cmp edx, 0xffffffff
je 0x540d70
lock sub dword [eax], 1
mov eax, dword [ebp - 0x148]
jne 0x540d70
mov esi, esi
lea edi, [edi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x540d70
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x540e04
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x540dd4
lock add dword [edx], 1
jmp 0x540d95
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x541132
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x540c1a
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x540b83
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax]
test edx, edx
jne 0x540d0e
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov eax, dword [ebp - 0x150]
mov edx, dword [eax]
test edx, edx
jne 0x540d33
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x540d48
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x540cd9
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x540cb4
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x540c8f
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x54110d
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x5410e8
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x5410c3
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x54109e
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x541079
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x541040
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x540fa9
lock add dword [edx], 1
jmp 0x540ea8
lock add dword [edx], 1
jmp 0x540ab8
lock add dword [edx], 1
jmp 0x540b33
lock add dword [edx], 1
jmp 0x540fc3
lock add dword [edx], 1
jmp 0x540f23
lock add dword [edx], 1
jmp 0x540ff6
lock add dword [edx], 1
jmp 0x540f59
lock add dword [edx], 1
jmp 0x540c34
lock add dword [edx], 1
jmp 0x540bd0
lock add dword [edx], 1
jmp 0x540b9d