Function at 0x4d058c
Capabilities:
Set socket configuration

Disassembly:
push ebp
sub esp, 0x68
push 0x24
mov eax, 0x5d43fb
call fcn.005234b0
mov esi, ecx
mov eax, dword [esi + 0x24]
xor edi, edi
cmp eax, edi
jne 0x4d0657
push edi
push str..dgt
lea ecx, [ebp + 0x24]
call fcn.004ac807
mov dword [ebp - 4], edi
push edi
push str..Global_
lea ecx, [ebp]
call fcn.004ac807
mov byte [ebp - 4], 1
lea eax, [ebp + 0x24]
push eax
push esi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004adc95
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp]
call fcn.004ac66a
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x24]
call fcn.004ac66a
lea ecx, [ebp - 0x30]
call fcn.004acb45
push edi
push 0x40000004
push 3
push edi
push edi
push 0xc0000000
push eax
call dword [0x71f620]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
push edi
jne 0x4d066a
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x68], esp
push edi
push str.Driver.OpenFailed
call fcn.004ac9bc
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
mov ecx, 0x721f18
call fcn.0041122b
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004ac66a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea ecx, [ebp + 0x64]
push ecx
push 4
lea ecx, [ebp + 0x5c]
push ecx
push 4
push ecx
push 0x22000c
push eax
call ebx
test eax, eax
je 0x4d068f
mov eax, dword [ebp + 0x5c]
mov dword [esi + 0x28], eax
mov ecx, esi
call fcn.004d04b9
mov eax, dword [0x722424]
push str.255.0.0.0
mov dword [ebp + 0x4c], eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push edi
push str.1.0.0.7
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x50], eax
call fcn.004ac807
mov byte [ebp - 4], 6
lea eax, [ebp + 0x24]
push eax
call fcn.004ade7b
pop ecx
push eax
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebp + 0x54], eax
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x24]
call fcn.004ac66a
push edi
lea eax, [ebp + 0x64]
push eax
push 0x10
lea eax, [ebp + 0x4c]
push eax
push 0x10
push eax
push 0x22001c
push dword [esi + 0x24]
mov dword [ebp + 0x58], 0x1e13380
call ebx
test eax, eax
jne 0x4d0727
push edi
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x68], esp
push edi
push str.Driver.DHCP.Failed
call fcn.004ac9bc
mov byte [ebp - 4], 7
mov byte [ebp - 4], 4
mov ecx, 0x721f18
call fcn.0041122b
push edi
lea ecx, [ebp + 0x64]
push ecx
push 6
lea eax, [esi + 0x30]
push eax
push 6
push eax
push 0x220004
push dword [esi + 0x24]
call ebx
test eax, eax
jne 0x4d0778
push edi
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x68], esp
push edi
push str.Driver.GetMAC.Failed
call fcn.004ac9bc
mov byte [ebp - 4], 8
mov byte [ebp - 4], 4
mov ecx, 0x721f18
call fcn.0041122b
push 6
lea eax, [esi + 0x30]
push edi
push eax
call fcn.00522720
add esp, 0xc
push edi
lea eax, [ebp + 0x64]
push eax
push 4
lea eax, [ebp + 0x60]
push eax
push 4
push eax
push 0x220018
push dword [esi + 0x24]
mov dword [ebp + 0x60], 1
call ebx
test eax, eax
jne 0x4d07c1
push edi
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x68], esp
push edi
push str.Driver.TAP_IOCTL_SET_MEDIA_STATUS.Rejected
call fcn.004ac9bc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 4
mov ecx, 0x721f18
call fcn.0041122b
mov eax, dword [0x722424]
cmp eax, edi
je 0x4d07cf
mov dword [esi + 0x2c], eax
jmp 0x4d07f5
push edi
sub esp, 0x24
mov ecx, esp
mov dword [ebp + 0x68], esp
push edi
push str.Driver.Invalid.IP
call fcn.004ac9bc
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 4
mov ecx, 0x721f18
call fcn.0041122b
lea eax, [ebp + 0x48]
push eax
push dword [esi + 0x38]
call fcn.004caa53
mov esi, dword [esi + 0x24]
pop ecx
pop ecx
jmp 0x4d0649