Function at 0x5162f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x576b52
mov eax, dword fs:[0]
push eax
sub esp, 0x85c
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x870]
mov dword fs:[0], eax
mov eax, dword [esp + 0x888]
mov esi, dword [esp + 0x880]
mov ebp, dword [esp + 0x884]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x88c]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x878], ebx
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x878], 1
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x87c], 2
mov ecx, str.SYSTEMCurrentControlSet_servicesTcpipParametersInterfaces
mov dword [esp + 0x30], ebx
call fcn.0040ff50
push esi
push 0x5ac83c
lea edi, [esp + 0x30]
mov byte [esp + 0x880], 3
call fcn.00410c20
mov eax, dword [esp + 0x30]
add esp, 8
lea edx, [esp + 0x20]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x516616
mov ecx, dword [esp + 0x20]
push 0x206
lea edx, [esp + 0x52]
push ebx
push edx
mov dword [esp + 0x24], ecx
mov word [esp + 0x58], bx
call sub.MSVCR80.dll_memset
push 0x206
lea eax, [esp + 0x46e]
push ebx
mov esi, 0x104
push eax
mov dword [esp + 0x38], esi
mov word [esp + 0x474], bx
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x272]
push ebx
push ecx
mov dword [esp + 0x54], esi
mov word [esp + 0x278], bx
call sub.MSVCR80.dll_memset
push 0x206
lea edx, [esp + 0x68e]
push ebx
push edx
mov dword [esp + 0x68], esi
mov word [esp + 0x694], bx
call sub.MSVCR80.dll_memset
add esp, 0x30
push str.IPAddress
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], esi
push eax
lea edi, [esp + 0x28]
lea esi, [esp + 0x54]
call fcn.005179e0
cmp eax, ebx
jne 0x516616
cmp dword [esp + 0x20], 0x10
ja 0x516616
mov edx, esi
mov edi, ebp
call fcn.00410020
push str.SubnetMask
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x38]
lea esi, [esp + 0x464]
call fcn.005179e0
cmp eax, ebx
jne 0x516616
mov ebp, 0x10
cmp dword [esp + 0x30], ebp
ja 0x516616
mov edi, dword [esp + 0x40]
mov edx, esi
call fcn.00410020
push str.DefaultGateway
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x40]
lea esi, [esp + 0x25c]
call fcn.005179e0
cmp eax, ebx
jne 0x516616
cmp dword [esp + 0x38], ebp
ja 0x516616
mov edi, dword [esp + 0x1c]
mov edx, esi
call fcn.00410020
push str.NameServer
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x3c]
lea esi, [esp + 0x66c]
call fcn.0041a310
cmp eax, ebx
jne 0x516616
cmp dword [esp + 0x34], 0x20
ja 0x516616
mov edx, esi
lea edi, [esp + 0x24]
call fcn.00410020
lea ecx, [esp + 0x1c]
mov edx, edi
push ecx
push edx
lea edi, [esp + 0x34]
call fcn.00460560
lea edi, [esp + 0x14]
mov byte [esp + 0x878], 4
call fcn.004101e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x878], 3
call fcn.00410000
mov eax, edi
push eax
mov ecx, 0x58c320
xor esi, esi
call fcn.00413110
add esp, 4
test al, al
je 0x51660f
cmp esi, ebx
jne 0x5165b1
mov edi, dword [esp + 0x44]
jmp 0x5165ba
cmp esi, 1
jne 0x5165c3
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x14]
call fcn.004101e0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea edi, [esp + 0x34]
call fcn.00460560
lea edi, [esp + 0x14]
mov byte [esp + 0x878], 5
call fcn.004101e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x878], 3
call fcn.00410000
mov eax, edi
push eax
mov ecx, 0x58c320
add esi, 1
call fcn.00413110
add esp, 4
test al, al
jne 0x5165a7
mov esi, 1
jmp 0x51661a
mov esi, dword [esp + 0x48]
mov byte [esp + 0x878], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x516642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x878], 1
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 0x51666a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x878], bl
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 0x516691
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x5166a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.00569ed6
add esp, 0x868
ret