Function at 0x41b430
Capabilities:
Check os version

Disassembly:
sub esp, 0x168
mov eax, dword [0x4915c0]
xor eax, esp
mov dword [esp + 0x160], eax
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x50]
xor ebp, ebp
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x54], 0x114
call edi
cmp dword [esp + 0x54], 6
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x4c]
push edx
sbb eax, eax
add eax, 2
push ebp
push eax
mov dword [esp + 0x58], ebp
call sub.Wlanapi.dll_WlanOpenHandle
test eax, eax
jne 0x41b7f7
mov eax, dword [ebx + 0xd0]
lea esi, [ebx + 0xe4]
push esi
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x54]
push edx
push ebp
push 7
push esi
push eax
mov dword [esp + 0x28], ebp
call sub.Wlanapi.dll_WlanQueryInterface
test eax, eax
jne 0x41b59e
mov edx, dword [esp + 0xc]
lea eax, [ebp + 6]
lea ecx, [ebx + 0x324]
add edx, 0x230
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x41b4f8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x41b4e0
cmp eax, ebp
je 0x41b555
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x41b547
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41b555
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x41b547
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41b555
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x41b547
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41b555
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x41b555
test esi, esi
mov eax, 1
jg 0x41b557
or eax, 0xffffffff
jmp 0x41b557
xor eax, eax
xor ebp, ebp
cmp eax, ebp
jne 0x41b59e
mov edx, dword [esp + 0xc]
cmp dword [edx], 1
jne 0x41b59e
cmp dword [ebx + 0xe0], ebp
jne 0x41b572
xor esi, esi
jmp 0x41b5a3
push ebx
call fcn.0041b850
xor esi, esi
cmp eax, 1
je 0x41b5a3
nop
push ebx
call fcn.0041b850
cmp eax, 1
je 0x41b56e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 0xf
jl 0x41b580
mov esi, 1
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x41b5b5
push eax
call sub.Wlanapi.dll_WlanFreeMemory
mov dword [esp + 0xc], ebp
mov ebp, 1
cmp esi, ebp
jne 0x41b824
push ebx
call fcn.0041ba20
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x50]
lea eax, [ebx + 0xfc]
xor esi, esi
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x54], 0x114
call edi
cmp dword [esp + 0x54], 6
jb 0x41b65b
mov edx, dword [ebx + 0x324]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov ax, word [ebx + 0x328]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 0x80
mov byte [esp + 0x1d], 1
mov word [esp + 0x1e], 0x14
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
mov word [esp + 0x2c], ax
mov dword [esp + 0x3c], ecx
jmp 0x41b65f
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 0x34]
mov dword [esp + 0x48], esi
push eax
lea esi, [ebx + 0xe4]
push esi
lea edx, [ebx + 0x2fc]
push ecx
mov dword [esp + 0x48], edx
call sub.Wlanapi.dll_WlanConnect
test eax, eax
je 0x41b6a2
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x34]
push edx
push esi
push eax
call sub.Wlanapi.dll_WlanConnect
test eax, eax
jne 0x41b81c
mov dword [esp + 0x14], 0
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
push 7
lea eax, [ebx + 0xe4]
push eax
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x28], 0
call sub.Wlanapi.dll_WlanQueryInterface
test eax, eax
mov ebp, dword [esp + 0xc]
jne 0x41b784
cmp dword [ebp], 1
jne 0x41b780
mov eax, 6
lea ecx, [ebx + 0x324]
lea edx, [ebp + 0x230]
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x41b718
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x41b700
test eax, eax
je 0x41b775
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x41b767
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41b775
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x41b767
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41b775
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x41b767
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x41b775
movzx ecx, byte [ecx]
movzx esi, byte [edx]
sub esi, ecx
je 0x41b775
test esi, esi
mov eax, 1
jg 0x41b777
or eax, 0xffffffff
jmp 0x41b777
xor eax, eax
test eax, eax
jne 0x41b780
lea edi, [eax + 1]
jmp 0x41b78d
xor edi, edi
jmp 0x41b78d
xor edi, edi
cmp dword [esp + 0x14], 0xf
je 0x41b7eb
test ebp, ebp
je 0x41b79f
push ebp
call sub.Wlanapi.dll_WlanFreeMemory
mov dword [esp + 0xc], 0
cmp dword [ebx + 0xe0], 1
jne 0x41b7bc
push ebx
call fcn.0041b850
mov esi, eax
sub esi, 1
neg esi
sbb esi, esi
add esi, 1
jmp 0x41b7c1
mov esi, 1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 1
jne 0x41b7d5
test esi, esi
jne 0x41b812
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0x19
mov dword [esp + 0x14], eax
jl 0x41b6aa
jmp 0x41b824
mov edx, dword [esp + 0x10]
push 0
push edx
call sub.Wlanapi.dll_WlanCloseHandle
or eax, 0xffffffff
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00455843
add esp, 0x168
ret
mov dword [esp + 0x18], 0
jmp 0x41b824
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x10]
push 0
push eax
call sub.Wlanapi.dll_WlanCloseHandle
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00455843
add esp, 0x168
ret