Function at 0x42ed10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c5d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [edi + 0xc]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp eax, ebx
je 0x42ed54
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0xc], ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0xc], eax
cmp eax, ebx
je 0x42edeb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetENSFVersion
push eax
call esi
mov ecx, dword [edi + 0xc]
push str.GetNICAvailability
push ecx
mov dword [edi + 0x10], eax
call esi
mov edx, dword [edi + 0xc]
push str.GetWirelessLANStatus
push edx
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0xc]
push str.GetCablelessSetupCapability
push eax
call esi
mov ecx, dword [edi + 0xc]
push str.GetSimpleAPSetupCapability
push ecx
mov dword [edi + 0x1c], eax
call esi
mov edx, dword [edi + 0xc]
push str.GetCurrentWirelessLANInfo
push edx
mov dword [edi + 0x20], eax
call esi
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0xc]
push str.GetDevicePropertyFromXML
push eax
call esi
mov ecx, dword [edi + 0xc]
push str.SetTempConnectionType
push ecx
mov ebx, eax
call esi
mov edx, dword [edi + 0xc]
push str.TerminateENSF
push edx
mov dword [edi + 0x28], eax
call esi
mov dword [edi + 0x2c], eax
jmp 0x42ee04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Load_Library_Error_nRet__d____r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 8
cmp dword [edi + 0x10], 0
je 0x42ef1c
cmp dword [edi + 0x14], 0
je 0x42ef1c
cmp dword [edi + 0x18], 0
je 0x42ef1c
cmp dword [edi + 0x1c], 0
je 0x42ef1c
cmp dword [edi + 0x20], 0
je 0x42ef1c
cmp dword [edi + 0x24], 0
je 0x42ef1c
test ebx, ebx
je 0x42ef1c
lea eax, [ebp - 0x10]
push eax
push 0
push 0x5ba6cc
push 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], 0
call fcn.00403670
push eax
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x42eea0
lea ecx, [ebp - 0x10]
push ecx
lea esi, [edi + 4]
push eax
mov ecx, esi
call fcn.00423170
push eax
push 0x5ba6cc
push 0
lea ecx, [ebp + 0xc]
call fcn.00403670
push eax
call ebx
call fcn.0042f180
mov eax, 1
mov dword [ebp - 0x18], eax
mov dword [edi + 8], eax
cmp dword [edi + 0x28], 0
je 0x42ef1c
lea esi, [ebp - 0x14]
call fcn.00422fa0
lea edx, [ebp - 0x10]
push edx
push 0
push str.wac_md
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x10], 0
call fcn.00403670
push eax
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x42ef14
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.00423170
push eax
push str.wac_md
push 0
lea ecx, [ebp + 0xc]
call fcn.00403670
push eax
call ebx
call fcn.0042f180
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x42ef14
push eax
call fcn.0055306f
mov edx, dword [edi + 0x28]
add esp, 4
push eax
call edx
lea ecx, [ebp - 0x14]
call fcn.00403860
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ef3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ef65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8