Function at 0x4207f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c440
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2f8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c0]
push 0
push 0
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 0
call fcn.004221b0
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c0]
push 8
mov dword [ebp - 0x2c0], 0x3f800000
call fcn.00413b70
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 3
call fcn.00421c10
push 0x4b2ff4
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x2fc], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x254], esi
test esi, esi
je 0x420a01
lea eax, [ebp - 0x254]
lea edx, [ebp - 0x26c]
mov dword [ebp - 0x26c], eax
lea ecx, [ebp - 0x2a0]
call fcn.0041bf10
push str.WlanOpenHandle
mov byte [ebp - 4], 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
push str.WlanFreeMemory
push dword [ebp - 0x254]
mov ebx, eax
call esi
push str.WlanEnumInterfaces
push dword [ebp - 0x254]
mov dword [ebp - 0x260], eax
call esi
push str.WlanGetAvailableNetworkList
push dword [ebp - 0x254]
mov edi, eax
call esi
push str.WlanGetNetworkBssList
push dword [ebp - 0x254]
mov dword [ebp - 0x26c], eax
call esi
mov dword [ebp - 0x28c], eax
test ebx, ebx
je 0x4209ea
cmp dword [ebp - 0x260], 0
je 0x4209ea
test edi, edi
je 0x4209ea
mov esi, dword [ebp - 0x26c]
test esi, esi
je 0x4209ea
test eax, eax
je 0x4209ea
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x2fc]
push eax
push 0
push 2
call ebx
test eax, eax
jne 0x4209ea
mov dword [ebp - 0x268], eax
lea edx, [ebp - 0x284]
lea eax, [ebp - 0x268]
mov dword [ebp - 0x284], eax
lea ecx, [ebp - 0x350]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x280], eax
call fcn.00421b90
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 5
push eax
push 0
push dword [ebp - 0x264]
call edi
test eax, eax
je 0x420a93
lea ecx, [ebp - 0x350]
call fcn.00421410
cmp byte [ebp - 0x29c], 0
je 0x420a01
mov eax, dword [ebp - 0x2a0]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x2b4]
test ecx, ecx
je 0x420a3b
mov eax, dword [ebp - 0x2ac]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.00413c90
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
lea ecx, [ebp - 0x2bc]
call fcn.004216b0
mov dword [ebp - 4], 0x20
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x420a75
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x420a75
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x420a75
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bdad
mov esp, ebp
pop ebp
ret 0xc
push 2
lea ecx, [ebp - 0x33c]
mov byte [ebp - 0x344], 2
call fcn.0040d400
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x294], 0
cmp dword [eax], 0
jle 0x421365
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x31c], ecx
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x318], ecx
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x304], ecx
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x300], ecx
xor ecx, ecx
mov dword [ebp - 0x290], ecx
nop dword [eax]
lea ebx, [eax + 8]
add ebx, ecx
lea edx, [ebp - 0x31c]
lea ecx, [ebp - 0x334]
call fcn.00421b90
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 8
push eax
push 0
push 0
push ebx
push dword [ebp - 0x264]
call esi
test eax, eax
jne 0x420baf
mov ecx, dword [ebp - 0x274]
xor edi, edi
cmp dword [ecx], edi
jle 0x420baf
xor esi, esi
mov al, byte [esi + ecx + 0x274]
and al, 1
je 0x420ba4
push dword [esi + ecx + 0x208]
lea eax, [ecx + 0x20c]
add eax, esi
lea ecx, [ebp - 0xe8]
push eax
call fcn.00402bf0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x40]
call fcn.00402d80
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 8
call fcn.00402bb0
mov ecx, dword [ebp - 0x274]
inc edi
add esi, 0x274
cmp edi, dword [ecx]
jl 0x420b52
lea edx, [ebp - 0x304]
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x328]
call fcn.00421b90
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 0xa
push eax
push 0
push 0
push 3
push 0
push ebx
push dword [ebp - 0x264]
call dword [ebp - 0x28c]
test eax, eax
jne 0x4212b3
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x258]
cmp dword [eax + 4], 0
jle 0x4212b3
lea ecx, [ebp - 0x26d]
xor ebx, ebx
mov dword [ebp - 0x30c], ecx
lea ecx, [ebp - 0x26e]
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x298], ebx
nop dword [eax + eax]
lea esi, [eax + 8]
mov ecx, 0x5a
add esi, ebx
lea edi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x250]
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x44], 0xf
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.00402c80
mov byte [ebp - 4], 0xb
xor esi, esi
mov edx, dword [ebp - 0x1f0]
xor ecx, ecx
test edx, edx
jle 0x420c99
nop dword [eax + eax]
movzx eax, word [ebp + ecx*2 - 0x1ec]
shr eax, 1
and eax, 0x3fff
cmp esi, eax
cmovl esi, eax
inc ecx
cmp ecx, edx
jl 0x420c80
push 0
push 0x14
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004048c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
movzx eax, byte [ebp - 0x223]
cmp dword [ebp - 0x14], 0x10
push eax
movzx eax, byte [ebp - 0x224]
cmovae ecx, dword [ebp - 0x28]
push eax
movzx eax, byte [ebp - 0x225]
push eax
movzx eax, byte [ebp - 0x226]
push eax
movzx eax, byte [ebp - 0x227]
push eax
movzx eax, byte [ebp - 0x228]
push eax
push str._02X_02X_02X_02X_02X_02X
push dword [ebp - 0x18]
push ecx
call fcn.00408e20
add esp, 0x24
mov dword [ebp - 0x5c], 0xf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x70], 0
push 0xffffffffffffffff
push 0
push eax
call fcn.00402d80
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c8]
push 1
mov byte [ebp - 0x2d0], 1
call fcn.0040d400
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x70]
call fcn.00421bd0
push eax
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xa0]
call fcn.00421b60
add esp, 4
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x420d89
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00402eb0
cmp dword [ebp - 0x8c], 0x10
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x74], 0xf
cmovae edx, dword [ebp - 0xa0]
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.00420630
sub esp, 0x10
mov byte [ebp - 4], 0x12
mov ebx, esp
mov dword [ebp - 0x27c], esp
push 0x18
mov byte [ebx], 3
call fcn.0045bdbe
mov edi, eax
add esp, 4
mov dword [ebp - 0x308], edi
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 0x25c], edi
mov byte [ebp - 4], 0x14
test edi, edi
je 0x420e32
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x420e1b
mov eax, dword [edi]
jmp 0x420e1d
mov eax, edi
push 0xffffffffffffffff
mov byte [eax], 0
mov ecx, edi
push 0
lea eax, [ebp - 0xd0]
push eax
call fcn.00402d80
mov dword [ebp - 0x308], 0
mov dword [ebx + 8], edi
sub esp, 0x18
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x420e6e
mov eax, dword [ecx]
jmp 0x420e70
mov eax, ecx
push 3
push 0x4b3090
mov byte [eax], 0
call fcn.00402c80
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 0x12
call fcn.00439480
add esp, 0x10
mov ecx, esp
mov dword [ebp - 0x25c], ecx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x420ebf
mov eax, dword [ecx]
jmp 0x420ec1
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00402d80
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.00421c90
mov dword [ebp - 0x27c], eax
sub esp, 0x10
mov byte [ebp - 4], 0x16
mov ebx, esp
mov dword [ebp - 0x25c], esp
push 0x18
mov byte [ebx], 3
call fcn.0045bdbe
mov edi, eax
add esp, 4
mov dword [ebp - 0x310], edi
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 0x18
test edi, edi
je 0x420f5d
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x420f47
mov eax, dword [edi]
jmp 0x420f49
mov eax, edi
push 0xffffffffffffffff
push 0
push dword [ebp - 0x27c]
mov ecx, edi
mov byte [eax], 0
call fcn.00402d80
mov dword [ebp - 0x310], 0
mov dword [ebx + 8], edi
sub esp, 0x18
mov byte [ebp - 4], 0x19
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x420f99
mov eax, dword [ecx]
jmp 0x420f9b
mov eax, ecx
push 7
push str.company
mov byte [eax], 0
call fcn.00402c80
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 0x16
call fcn.00439480
mov eax, dword [ebp - 0x74]
add esp, 0x28
cmp eax, 0x10
jb 0x420fd7
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00402eb0
sub esp, 0x10
mov eax, esi
mov ecx, esp
cdq
mov dword [ebp - 0x280], esp
mov byte [ecx], 5
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
sub esp, 0x18
mov byte [ebp - 4], 0x1a
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x42101d
mov eax, dword [ecx]
jmp 0x42101f
mov eax, ecx
push 7
push str.maxRate
mov byte [eax], 0
call fcn.00402c80
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 0x12
call fcn.00439480
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
mov edx, dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x58]
push eax
call fcn.0040bcc0
add esp, 0x30
test eax, eax
jne 0x4210c8
mov byte [ebp - 0x2e0], 4
mov byte [ebp - 0x2d8], 1
push str.connected
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 0x1b
call fcn.004132b0
mov esi, eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x2d8]
mov cl, byte [esi]
mov byte [esi], 4
mov edx, dword [esi + 8]
mov byte [ebp - 0x2e0], cl
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d4], ecx
lea ecx, [ebp - 0x2e0]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x2d8], edx
call fcn.004119c0
mov edx, dword [ebp - 0x258]
lea ecx, [ebp - 0xb8]
mov ebx, dword [ebp - 0x298]
add edx, 8
add edx, ebx
call fcn.00420260
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0xa8], 0
je 0x42115c
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040cf90
push str.routerModel
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 0x1d
call fcn.004132b0
mov byte [ebp - 4], 0x1c
mov esi, eax
mov cl, byte [ebp - 0x2f0]
mov dl, byte [esi]
mov byte [esi], cl
mov eax, dword [ebp - 0x2e8]
mov byte [ebp - 0x2f0], dl
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x2e4]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x2e8], ecx
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 0x2e4], edx
call fcn.004119c0
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x344]
call fcn.00413000
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
jb 0x42118c
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00402eb0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
cmp eax, 0x10
jb 0x4211c5
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.00402eb0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
cmp eax, 0x10
jb 0x4211fe
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00402eb0
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
call fcn.004119c0
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x421239
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00402eb0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x421260
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402eb0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x42128b
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00402eb0
mov ecx, dword [ebp - 0x288]
add ebx, 0x168
mov eax, dword [ebp - 0x258]
inc ecx
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x298], ebx
cmp ecx, dword [eax + 4]
jl 0x420c30
mov byte [ebp - 4], 0x1e
cmp byte [ebp - 0x320], 0
je 0x4212dd
mov esi, dword [ebp - 0x328]
mov eax, dword [esi]
test eax, eax
je 0x4212dd
push eax
mov eax, dword [ebp - 0x324]
mov eax, dword [eax]
call eax
mov dword [esi], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4212f2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00402eb0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 0x1f
cmp byte [ebp - 0x32c], 0
je 0x42132e
mov esi, dword [ebp - 0x334]
mov eax, dword [esi]
test eax, eax
je 0x42132e
push eax
mov eax, dword [ebp - 0x330]
mov eax, dword [eax]
call eax
mov dword [esi], 0
mov esi, dword [ebp - 0x294]
mov ecx, dword [ebp - 0x290]
inc esi
mov byte [ebp - 4], 6
add ecx, 0x214
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x290], ecx
cmp esi, dword [eax]
mov esi, dword [ebp - 0x26c]
jl 0x420b00
sub esp, 0x10
lea eax, [ebp - 0x344]
mov ecx, esp
push eax
call fcn.0040eb90
mov ecx, dword [ebp - 0x2f8]
lea ecx, [ecx + 0x20]
call fcn.00410ab0
lea ecx, [ebp - 0x344]
call fcn.004119c0
lea ecx, [ebp - 0x350]
call fcn.00421410
cmp byte [ebp - 0x29c], 0
je 0x4213b1
mov eax, dword [ebp - 0x2a0]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2c0]
call fcn.004213d0
jmp 0x420a46