Function at 0x41b1e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x138
mov eax, dword [0x4915c0]
xor eax, esp
mov dword [esp + 0x134], eax
push ebp
mov ebp, dword [0x4962c8]
push edi
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x2c], 6
jae 0x41b24a
push str.wlanapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
cmp eax, edi
jne 0x41b241
pop edi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00455843
add esp, 0x138
ret
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41b24c
xor edi, edi
call fcn.0041afe0
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x41b416
mov dword [esp + 8], edi
call fcn.004284b0
neg eax
lea ecx, [esp + 8]
push ecx
sbb eax, eax
lea edx, [esp + 0x20]
push edx
neg eax
add eax, 1
push edi
push eax
mov dword [esp + 0x2c], edi
call sub.Wlanapi.dll_WlanOpenHandle
test eax, eax
je 0x41b2a4
pop edi
mov eax, 0xfffffffd
pop ebp
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00455843
add esp, 0x138
ret
mov eax, dword [ebp + 0xd0]
push ebx
lea ebx, [ebp + 0xe4]
push ebx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
call fcn.004284b0
test eax, eax
jne 0x41b32b
mov eax, dword [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push 1
push ebx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], 4
call sub.Wlanapi.dll_WlanQueryInterface
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x41b321
cmp dword [eax], edi
jne 0x41b321
push eax
call sub.Wlanapi.dll_WlanFreeMemory
mov ecx, dword [esp + 0xc]
push edi
push ecx
call sub.Wlanapi.dll_WlanCloseHandle
pop ebx
pop edi
mov eax, 0xfffffffd
pop ebp
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00455843
add esp, 0x138
ret
cmp eax, edi
je 0x41b32b
push eax
call sub.Wlanapi.dll_WlanFreeMemory
mov ecx, dword [esp + 0xc]
push esi
push edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push edi
push 7
push ebx
push ecx
mov dword [esp + 0x3c], edi
call sub.Wlanapi.dll_WlanQueryInterface
test eax, eax
mov eax, dword [esp + 0x20]
jne 0x41b364
lea edi, [ebp + 0xf4]
mov ecx, 0x97
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
jmp 0x41b36c
mov dword [esp + 0x18], 0xfffffffc
cmp eax, edi
je 0x41b376
push eax
call sub.Wlanapi.dll_WlanFreeMemory
cmp dword [esp + 0x18], edi
jne 0x41b405
lea edx, [ebp + 0x300]
lea esi, [ebp + 0x350]
push edx
mov ecx, esi
mov dword [esp + 0x18], edi
call fcn.00402d20
mov esi, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push esi
push ebx
push eax
call sub.Wlanapi.dll_WlanGetProfile
test eax, eax
jne 0x41b3cc
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [ebp + 0x354]
call fcn.00403510
jmp 0x41b3d4
mov dword [esp + 0x18], 0xfffffffc
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x41b3e2
push eax
call sub.Wlanapi.dll_WlanFreeMemory
cmp dword [esp + 0x18], edi
jne 0x41b405
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x20]
push edx
push 4
push 1
push ebx
push eax
mov dword [esp + 0x34], 1
call sub.Wlanapi.dll_WlanSetInterface
mov ecx, dword [esp + 0x10]
push edi
push ecx
call sub.Wlanapi.dll_WlanCloseHandle
mov eax, dword [esp + 0x18]
pop esi
pop ebx
mov ecx, dword [esp + 0x13c]
pop edi
pop ebp
xor ecx, esp
call fcn.00455843
add esp, 0x138
ret