Function at 0x483040
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
push 0
push 1
push str.wlanapi.dll
push 0
call fcn.00417f90
add esp, 0x10
test eax, eax
je 0x483133
mov esi, eax
push str.WlanOpenHandle
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48313a
mov edi, eax
push str.WlanEnumInterfaces
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x483141
mov ebx, eax
push str.WlanQueryInterface
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x483148
mov ebp, eax
push str.WlanFreeMemory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48314f
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], eax
push str.WlanCloseHandle
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x483156
mov ebp, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push 2
call edi
mov edi, str.WlanOpenHandle___failed
test eax, eax
jne 0x483117
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x1c]
call ebx
mov edi, str.WlanEnumInterfaces___failed
test eax, eax
je 0x48316c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x483124
push eax
call dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x48315b
push 0
push eax
call ebp
jmp 0x48315b
mov edi, str.dlopen_wlanapi.dll_failed
jmp 0x483162
mov edi, str.dlsym_WlanOpenHandle_failed
jmp 0x48315b
mov edi, str.dlsym_WlanEnumInterfaces_failed
jmp 0x48315b
mov edi, str.dlsym_WlanQueryInterface_failed
jmp 0x48315b
mov edi, str.dlsym_WlanFreeMemory_failed
jmp 0x48315b
mov edi, str.dlsym_WlanCloseHandle_failed
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0x10]
cmp dword [edi], 0
je 0x4837e0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x48]
xor esi, esi
jmp 0x4831c3
mov edi, dword [ebp + 0x50]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edi + ebx + 4], ecx
mov dword [edi + ebx], eax
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x50]
lea edx, [eax + 8]
mov dword [ebp + 0x4c], edx
mov byte [ecx + eax + 8], 0
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x48]
push eax
call dword [esp + 0x1c]
inc esi
mov edi, dword [esp + 0x10]
cmp esi, dword [edi]
jae 0x4837cf
mov eax, dword [ebx]
mov ebp, dword [ebx + 8]
cmp ebp, dword [ebx + 0xc]
jne 0x4831f4
lea ecx, [ebp*2]
test ebp, ebp
mov edx, 0x10
cmove ecx, edx
mov dword [ebx + 0xc], ecx
imul ecx, dword [ebx + 4]
push ecx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov dword [ebx], eax
mov ebp, dword [ebx + 8]
lea ecx, [ebp + 1]
mov dword [ebx + 8], ecx
imul ebp, dword [ebx + 4]
add ebp, eax
mov dword [esp], esi
imul eax, esi, 0x214
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
lea esi, [edi + eax]
add esi, 0x18
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
test eax, eax
je 0x48325d
mov edi, eax
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
inc eax
mov dword [ebp], eax
jne 0x483275
mov eax, dword [0x5052b0]
jmp 0x483281
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
jmp 0x4832ae
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0
push 0
push 0
push ebx
push eax
push edi
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 4], ebx
mov eax, dword [ebp + 8]
mov byte [eax + ebx], 0
mov ebx, dword [esp + 0x48]
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov eax, dword [0x5052b0]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x5c], 0x7ff80000
mov dword [ebp + 0x58], 0
movapd xmm0, xmmword [0x4fbfe0]
movupd xmmword [ebp + 0x60], xmm0
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov ecx, dword [edi + esi + 0x218]
call fcn.004837f0
mov eax, esi
cmp dword [edi + esi + 0x218], 1
mov esi, dword [esp]
jne 0x4831b6
add eax, edi
add eax, 8
mov dword [esp + 0x2c], 0x25c
mov dword [esp + 0x28], 3
mov dword [esp + 4], 0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x34]
push ecx
push 0
push 7
push eax
push dword [esp + 0x2c]
call dword [esp + 0x40]
test eax, eax
jne 0x4831b6
lea edx, [ebp + 0x18]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
call fcn.004837f0
mov ebx, dword [esp + 4]
mov esi, dword [ebx + 0x208]
test esi, esi
je 0x483477
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
test eax, eax
je 0x4833d3
mov ecx, edi
not ecx
add ecx, eax
cmp ecx, esi
jae 0x483416
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
mov dword [esp + 8], edi
lea edx, [esi + edi]
inc edx
nop dword [eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x4833f0
test eax, eax
je 0x48341b
push edi
push dword [ebp + 0x2c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ecx, eax
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 8], eax
jmp 0x48344c
mov ecx, dword [ebp + 0x2c]
jmp 0x483453
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ecx, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x483446
inc eax
push eax
push dword [ebp + 0x2c]
push ecx
mov dword [esp + 0x18], ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
jmp 0x483449
mov byte [ecx], 0
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x24], edi
mov edi, dword [esp + 8]
add edi, ecx
add ebx, 0x20c
push esi
push ebx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add esi, dword [ebp + 0x28]
mov dword [ebp + 0x28], esi
mov eax, dword [ebp + 0x2c]
mov byte [eax + esi], 0
mov ebx, dword [esp + 4]
lea esi, [ebp + 0x30]
movzx eax, byte [ebx + 0x230]
push eax
push str._.2X_
push esi
call fcn.00472860
add esp, 0xc
mov eax, dword [esp + 4]
movzx eax, byte [eax + 0x231]
push eax
push str._.2X_
push esi
call fcn.00472860
add esp, 0xc
mov eax, dword [esp + 4]
movzx eax, byte [eax + 0x232]
push eax
push str._.2X_
push esi
call fcn.00472860
add esp, 0xc
mov eax, dword [esp + 4]
movzx eax, byte [eax + 0x233]
push eax
push str._.2X_
push esi
call fcn.00472860
add esp, 0xc
mov eax, dword [esp + 4]
movzx eax, byte [eax + 0x234]
push eax
push str._.2X_
push esi
call fcn.00472860
add esp, 0xc
mov eax, dword [esp + 4]
movzx eax, byte [eax + 0x235]
push eax
push str._.2X_
push esi
call fcn.00472860
add esp, 0xc
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x4835ad
mov ebx, dword [ebp + 0x38]
cmp byte [eax + ebx - 1], 0x2d
jne 0x4835ad
inc eax
mov edi, eax
add eax, 0xfffffffe
mov dword [ebp + 0x34], eax
cmp edi, 2
je 0x48358b
lea eax, [edi - 1]
cmp byte [ebx + edi - 3], 0x2d
je 0x48352c
cmp dword [esi], 0
jne 0x483590
lea ecx, [eax - 1]
mov dword [esp + 8], ecx
mov dword [ebp + 0x34], 0
mov ecx, 0x20
mov esi, ecx
add ecx, ecx
cmp eax, esi
ja 0x48355b
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov byte [eax], 0
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x30], esi
mov esi, dword [esp + 8]
push esi
push ebx
push eax
mov ebx, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [ebp + 0x34], esi
jmp 0x483590
cmp dword [esi], 0
je 0x483597
mov byte [ebx + edi - 2], 0
jmp 0x4835ad
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov eax, dword [0x5052b0]
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x3c]
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0x238]
lea edx, [ecx - 1]
cmp edx, 0xa
ja case.default.0x4835c2
jmp dword [edx*4 + 0x4fc2e0]
push str.802.11__FHSS_
jmp 0x4835e3
push ecx
push str.Unknown___u_
push eax
call fcn.00472860
jmp 0x483638
push str.802.11__DSSS_
push 0xd
jmp 0x483632
push str.802.11__IR_
push 0xb
jmp 0x483632
push str.802.11a
push 7
jmp 0x483632
push str.802.11b
push 7
jmp 0x483632
push str.802.11g
push 7
jmp 0x483632
push str.802.11n__Wi_Fi_4_
push 0x11
jmp 0x483632
push str.802.11ac__Wi_Fi_5_
jmp 0x483630
push str.802.11ad__WiGig_
push 0x10
jmp 0x483632
push str.802.11ax__Wi_Fi_6_
jmp 0x483630
push str.802.11be__Wi_Fi_7_
push 0x12
push eax
call fcn.00472620
add esp, 0xc
mov ebx, dword [esp + 0x48]
mov esi, dword [esp]
lea edi, [ebp + 0x48]
mov eax, dword [esp + 4]
movss xmm0, dword [eax + 0x240]
movsd xmm1, qword [0x4fbff0]
orpd xmm0, xmm1
subsd xmm0, xmm1
movsd qword [ebp + 0x58], xmm0
movss xmm0, dword [eax + 0x244]
orpd xmm0, xmm1
subsd xmm0, xmm1
movsd qword [ebp + 0x60], xmm0
movss xmm0, dword [eax + 0x248]
orpd xmm0, xmm1
subsd xmm0, xmm1
movsd qword [ebp + 0x68], xmm0
cmp dword [eax + 0x24c], 0
je 0x4836b7
mov eax, dword [eax + 0x254]
lea ecx, [eax - 1]
cmp ecx, 0xa
ja case.default.0x4836a7
jmp dword [ecx*4 + 0x4fc30c]
push str.802.11_Open
push 0xb
jmp 0x483723
mov edx, str.Insecure
jmp 0x483742
push eax
push str.Unknown___u_
push edi
call fcn.00472860
jmp 0x483729
push str.802.11_Shared
push 0xd
jmp 0x483723
push 0x4fc21c
jmp 0x483718
push str.WPA_PSK
jmp 0x483721
push str.WPA_None
push 8
jmp 0x483723
push str.WPA2
push 4
jmp 0x483723
push str.WPA2_PSK
push 8
jmp 0x483723
push str.WPA3
push 4
jmp 0x483723
push str.WPA3_SAE
push 8
jmp 0x483723
push 0x4fc24d
push 3
jmp 0x483723
push str.OWE_ENT
push 7
push edi
call fcn.00472620
add esp, 0xc
mov eax, dword [esp + 4]
mov edx, str._802.11X
cmp dword [eax + 0x250], 0
je 0x4831b1
mov eax, dword [ebp + 0x48]
mov ebx, dword [ebp + 0x4c]
test eax, eax
je 0x48375b
mov ecx, ebx
not ecx
add ecx, eax
cmp ecx, 8
jae 0x483189
mov dword [esp + 0xc], edx
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebx + 9]
nop
mov esi, ecx
add ecx, ecx
cmp edx, esi
ja 0x483770
mov dword [esp + 8], edi
test eax, eax
je 0x483796
push esi
push dword [ebp + 0x50]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
mov dword [ebp + 0x50], eax
mov ebx, dword [ebp + 0x4c]
jmp 0x4837bd
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test ebx, ebx
je 0x4837b7
lea eax, [ebx + 1]
push eax
push dword [ebp + 0x50]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x4837ba
mov byte [edi], 0
mov dword [ebp + 0x50], edi
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov dword [eax], esi
mov esi, dword [esp]
jmp 0x48318c
mov eax, edi
xor edi, edi
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
jmp 0x48311f
mov eax, edi
xor edi, edi
jmp 0x48311f