Function at 0x538080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x576566
mov eax, dword fs:[0]
push eax
mov eax, 0x3b24
call fcn.0056a4b0
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x3b1c], eax
push ebx
push ebp
push esi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x3b34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3b44]
xor ebx, ebx
push 0x3acc
mov esi, ecx
lea ecx, [esp + 0x64]
push ebx
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], 0xe0010047
mov dword [esp + 0x68], ebx
call sub.MSVCR80.dll_memset
lea edx, [esp + 0x30]
add esp, 0xc
push edx
call fcn.0051a800
add esp, 4
lea esi, [edi + 0x40c4]
mov dword [esp + 0x3b3c], ebx
call fcn.00410120
lea esi, [edi + 0x40c8]
call fcn.00410120
mov byte [edi + 0x40cc], bl
mov eax, dword [edi + 0x40d4]
mov ecx, dword [eax + 4]
lea esi, [edi + 0x40d0]
push ecx
mov ecx, esi
call fcn.0052bf70
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
push 0x3ad0
mov dword [eax + 8], eax
lea eax, [edi + 0x168]
push ebx
push eax
call sub.MSVCR80.dll_memset
xor eax, eax
mov dword [edi + 0x3c3c], eax
mov dword [edi + 0x3c40], eax
mov dword [edi + 0x3c44], eax
or ebp, 0xffffffff
mov dword [edi + 0x3c48], eax
mov dword [edi + 0x3c38], ebp
mov eax, dword [edi + 0xc]
add esp, 0xc
cmp eax, ebx
je 0x538191
lea edx, [esp + 0x5c]
push ebx
push edx
call eax
add esp, 8
mov eax, dword [esp + 0x5c]
cmp eax, ebx
ja 0x5381a6
mov dword [esp + 0x18], 0xe0010040
jmp 0x5383d8
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jbe 0x5383b0
lea eax, [esp + 0x27a2]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00441ee0
lea edx, [esp + 0x38]
mov byte [esp + 0x3b3c], 1
mov ebp, dword [esi + 4]
push edx
lea ebx, [esp + 0x18]
call fcn.005365f0
mov ebx, eax
cmp esi, dword [ebx]
je 0x5381f0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebp, dword [ebx + 4]
je 0x538202
mov byte [esp + 0x3b3c], 0
jmp 0x5382c6
mov eax, dword [esp + 0x24]
xor ebx, ebx
cmp eax, ebx
je 0x53824c
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x538250
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
cmp eax, ebx
je 0x53824c
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x538250
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
mov ebx, esi
call fcn.0052b8f0
mov byte [esp + 0x3b3c], 0
jmp 0x5382c6
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x4c]
xor eax, eax
push edx
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
call fcn.00498ad0
test eax, eax
jne 0x538305
lea ecx, [esp + 0x4c]
call fcn.00441ac0
test al, al
je 0x5382bf
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ebx, esi
call fcn.0052b8f0
mov byte [esp + 0x3b3c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x5382da
mov byte [esp + 0x3b3c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5382e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], 0x32
add eax, 1
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
jb 0x5381bd
jmp 0x5383b0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, esi
call fcn.0052b8f0
mov eax, dword [edi + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x538329
mov ecx, dword [esp + 0x1c]
push ecx
call eax
add esp, 4
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x538389
push ebx
call eax
add esp, 4
cmp al, bl
je 0x538389
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [edi + 0x3c3c], edx
mov edx, dword [esp + 0x58]
mov dword [edi + 0x3c40], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x3c44], ecx
push 0x3ad0
lea ecx, [esp + 0x60]
mov dword [edi + 0x3c38], eax
push ecx
lea eax, [edi + 0x168]
push eax
mov dword [edi + 0x3c48], edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [esp + 0x18], ebx
mov byte [esp + 0x3b3c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5383b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or ebp, 0xffffffff
cmp dword [edi + 0x3c38], ebp
jne 0x5383c5
mov dword [esp + 0x18], 0xe0010041
jmp 0x5383d8
mov ecx, dword [esp + 0x5c]
cmp dword [edi + 0x40d8], ecx
je 0x5383d8
mov byte [edi + 0x40cc], 1
movzx edx, byte [edi + 0x40cc]
mov esi, dword [esp + 0x18]
push esi
push edx
push str.KRtSoftAP::_AdapterSelect_next:_d__result:_x
mov ecx, 0x6180b8
call fcn.00435a30
mov dword [esp + 0x3b48], ebp
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x53841b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x3b34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b1c]
xor ecx, esp
call fcn.00569ed6
add esp, 0x3b30
ret 4