Function at 0x50ea30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x57b930
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x5e736c
mov dword [esp + 0x18], edi
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x48], ebx
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x3c], edi
call fcn.0051a800
add esp, 4
mov byte [esp + 0x38], 1
mov eax, dword [ebp]
cmp dword [eax - 0xc], 7
jl 0x50ec29
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.00514780
push eax
push str.KWifiShell::ReSetIpAddress_Return:_x
mov ecx, 0x6180b8
call fcn.00435a30
add esp, 0x10
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x50eac7
mov esi, dword [esp + 0x44]
cmp eax, 5
jne 0x50eb05
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov edi, 0x5a8508
call fcn.0050daf0
push ecx
mov byte [esp + 0x40], 2
mov edi, dword [ebp]
mov eax, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0050b6d0
mov ecx, dword [esp + 0x48]
push esi
add ecx, 0x28
mov byte [esp + 0x44], 1
call fcn.0050bfb0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00515f00
add esp, 8
mov byte [esp + 0x38], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebx - 0x10]
cmp eax, edi
je 0x50eb76
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x50eb65
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x50eb65
call fcn.00410660
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x50eb5c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x48], ebx
jmp 0x50eb72
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x4c]
call fcn.00410570
mov ebx, dword [esp + 0x48]
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50eb9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push str.KHostedNetworkIPMgr::GetIpAddressByGuid_Result:_s
mov ecx, 0x6180b8
call fcn.00435a30
xor eax, eax
add esp, 8
test ebx, ebx
setne al
test eax, eax
je 0x50ec0d
mov eax, dword [ebp]
mov ecx, ebx
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50ebe6
test dx, dx
je 0x50ebe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50ebe6
add eax, 4
add ecx, 4
test dx, dx
jne 0x50ebc0
xor eax, eax
jmp 0x50ebeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x50ec17
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x20], eax
jl 0x50eac3
jmp 0x50ee20
push 0x80004005
call fcn.0040fcd0
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x48]
call fcn.004101e0
jmp 0x50ee18
mov ebp, 0x5dcff0
jmp 0x50ec34
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x24]
cmp dword [eax - 0xc], 0xc
jl 0x50ec59
mov edx, dword [ebp]
push 0xc
push edx
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x50ee03
mov eax, dword [ebp]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.00514780
push eax
push str.KWifiShell::ReSetIpAddress_Return:_x
mov ecx, 0x6180b8
call fcn.00435a30
mov edx, dword [ebp]
add esp, 0x10
test edx, edx
jne 0x50ec84
xor eax, eax
jmp 0x50ec9f
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50ec90
sub eax, esi
sar eax, 1
mov ebx, eax
mov eax, dword [esp + 0x4c]
push edx
call fcn.00410570
xor eax, eax
mov dword [esp + 0x20], eax
cmp eax, 5
jne 0x50ecf3
push ecx
mov edx, esp
mov dword [esp + 0x30], esp
push edx
mov edi, 0x5a8508
call fcn.0050daf0
push ecx
mov byte [esp + 0x40], 4
mov edi, dword [ebp]
mov eax, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0050b6d0
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
add ecx, 0x28
mov byte [esp + 0x44], 1
call fcn.0050bfb0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00515f00
add esp, 8
mov byte [esp + 0x38], 5
mov ecx, dword [eax]
mov esi, dword [esp + 0x48]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x50ed68
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x50ed57
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x50ed57
call fcn.00410660
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x50ed4e
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x48], esi
jmp 0x50ed64
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x4c]
call fcn.00410570
mov esi, dword [esp + 0x48]
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50ed8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
push str.KHostedNetworkIPMgr::GetIpAddressByGuid_Result:_s
mov ecx, 0x6180b8
call fcn.00435a30
xor eax, eax
add esp, 8
test esi, esi
setne al
test eax, eax
je 0x50ec0d
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50eddd
test dx, dx
je 0x50edd9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50eddd
add eax, 4
add ecx, 4
test dx, dx
jne 0x50edb7
xor eax, eax
jmp 0x50ede2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x50ee14
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x20], eax
jl 0x50ecb1
mov ebx, dword [esp + 0x48]
add ebp, 4
cmp ebp, 0x5dcffc
jl 0x50ec30
jmp 0x50ee20
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x18]
push esi
push str.KHostedNetworkIPMgr::_ResetIpForVista_Result:_d
mov ecx, 0x6180b8
call fcn.00435a30
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50ee5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50ee80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10