Function at 0x50a029
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x56f2bc
call fcn.0053c1d0
sub esp, 0x180
mov eax, dword [0x5af710]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
push edi
xor edi, edi
cmp dword [ebp + 0xc], 3
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], edi
jne 0x50a063
push esi
call fcn.00509d14
pop ecx
jmp 0x50a680
xor ebx, ebx
inc ebx
push ebx
push 2
lea ecx, [ebp - 0xd4]
call fcn.00404a20
cmp dword [0x5b21d0], edi
mov dword [ebp - 4], ebx
jne 0x50a0a0
call fcn.00509986
cmp dword [0x5b21d0], edi
jne 0x50a0a0
push 0x572aed
mov ecx, esi
call fcn.00405500
mov dword [ebp - 0x48], ebx
jmp 0x50a65c
lea eax, [ebp - 0x4c]
push eax
push edi
mov dword [ebp - 0x4c], edi
call dword [0x5b21d0]
mov ecx, eax
xor eax, eax
cmp ecx, 0x6f
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x50a5d9
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x54]
call fcn.00402b40
mov edi, dword [ebp - 0x54]
test edi, edi
mov byte [ebp - 4], 2
jne 0x50a2a8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
push 2
lea ecx, [ebp - 0x18c]
call fcn.00404a20
mov esi, 0x572a6c
push esi
push 0x572aa0
push 0x572a4c
push esi
push 0x572a48
push 0x10000000
push 0x572a40
push dword [ebp - 0x1c]
mov eax, 0x572a3c
push eax
push dword [ebp - 0x1e]
mov edx, 0x572a38
push eax
push dword [ebp - 0x20]
mov ecx, 0x572a34
push edx
push dword [ebp - 0x22]
mov byte [ebp - 4], 3
push ecx
push dword [ebp - 0x26]
push ecx
push dword [ebp - 0x28]
push edx
push 0x88c
push eax
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x57ea88
call fcn.00405500
lea eax, [ebp - 0x10c]
push eax
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x50a17b
mov eax, dword [eax + 4]
jmp 0x50a17e
add eax, 4
push eax
lea eax, [ebp - 0x18c]
push 0x572a0c
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov byte [ebp - 4], 3
push 0
push ebx
lea ecx, [ebp - 0x10c]
call fcn.00402c50
lea eax, [ebp - 0x18c]
push eax
call fcn.00407930
pop ecx
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 2
call fcn.004028d0
mov esi, 0x572840
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], esi
call fcn.0054dfcb
mov ecx, dword [ebp - 0x40]
push 0x572aed
call fcn.00405500
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 0
call fcn.004028d0
mov dword [ebp - 0x88], esi
jmp 0x50a630
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [0x5b21d0]
test eax, eax
jne 0x50a5c9
and dword [ebp - 0x3c], eax
and dword [ebp - 0x38], eax
mov esi, 0x572a6c
mov ebx, 0x572bf8
lea eax, [edi + 0x10c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405500
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 5
call fcn.005043ee
pop ecx
push 0
push str.VIRTUAL
lea ecx, [ebp - 0x34]
call fcn.0040b730
test eax, eax
jl 0x50a312
push 0
push str.VMWARE
lea ecx, [ebp - 0x34]
call fcn.0040b730
test eax, eax
jge 0x50a4ff
push dword [edi + 0x190]
lea eax, [edi + 0x194]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0053c280
add esp, 0xc
test eax, eax
je 0x50a4ff
mov ecx, dword [ebp + 0xc]
sub ecx, 0
lea eax, [edi + 0x1ac]
mov dword [ebp - 0x44], eax
je 0x50a42c
dec ecx
je 0x50a3be
dec ecx
jne 0x50a4fc
test eax, eax
je 0x50a4fc
jmp 0x50a35f
mov eax, dword [ebp - 0x44]
add eax, 4
push eax
call sub.WSOCK32.dll_inet_addr
test eax, eax
je 0x50a3ad
mov eax, dword [ebp - 0x44]
push esi
add eax, 4
push eax
push ebx
push dword [ebp - 0x38]
lea eax, [ebp - 0xd4]
push 0x573c04
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
inc dword [ebp - 0x38]
pop ecx
pop ecx
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x44], eax
jne 0x50a35c
jmp 0x50a4fc
push 4
lea eax, [edi + 0x194]
push eax
push dword [edi + 0x190]
lea eax, [ebp - 0x10c]
push eax
call fcn.0050495c
add esp, 0x10
push esi
push eax
push ebx
push dword [ebp - 0x3c]
lea eax, [ebp - 0xd4]
push str.MACAddress
push eax
mov byte [ebp - 4], 7
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.0040b751
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x10c]
call fcn.00402c50
jmp 0x50a4fc
push 4
lea eax, [edi + 0x194]
push eax
push dword [edi + 0x190]
lea eax, [ebp - 0xf0]
push eax
call fcn.0050495c
add esp, 0x10
push esi
push eax
push ebx
push dword [ebp - 0x3c]
lea eax, [ebp - 0xd4]
push str.MACAddress
push eax
mov byte [ebp - 4], 6
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.0040b751
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 5
call fcn.00402c50
cmp dword [ebp - 0x44], 0
je 0x50a4fc
mov eax, dword [ebp - 0x44]
add eax, 4
push eax
call sub.WSOCK32.dll_inet_addr
test eax, eax
je 0x50a4f0
mov eax, dword [ebp - 0x44]
push esi
add eax, 4
push eax
push ebx
push dword [ebp - 0x38]
lea eax, [ebp - 0xd4]
push 0x573c04
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
inc dword [ebp - 0x38]
pop ecx
pop ecx
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x44], eax
jne 0x50a49f
inc dword [ebp - 0x3c]
mov edi, dword [edi]
push 0
lea ecx, [ebp - 0x34]
push 1
mov byte [ebp - 4], 2
call fcn.00402c50
test edi, edi
jne 0x50a2cb
mov eax, dword [ebp + 0xc]
xor ecx, ecx
sub eax, ecx
je 0x50a55c
dec eax
je 0x50a547
dec eax
jne 0x50a5c6
cmp dword [ebp - 0x38], ecx
je 0x50a5fa
push esi
push dword [ebp - 0x38]
push ebx
push str.IPCount
lea eax, [ebp - 0xd4]
jmp 0x50a5a7
cmp dword [ebp - 0x3c], ecx
je 0x50a5fa
push esi
push dword [ebp - 0x3c]
push ebx
push str.MACCount
jmp 0x50a53f
cmp dword [ebp - 0x38], ecx
je 0x50a5fa
cmp dword [ebp - 0x3c], ecx
je 0x50a5fa
push esi
push dword [ebp - 0x38]
lea eax, [ebp - 0xd4]
push ebx
push str.IPCount
push esi
push dword [ebp - 0x3c]
push ebx
push str.MACCount
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
push eax
call fcn.00403980
pop ecx
pop ecx
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
pop ecx
pop ecx
xor ebx, ebx
inc ebx
push dword [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0055047a
mov esi, dword [ebp - 0x40]
pop ecx
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00407320
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 8
jb 0x50a640
mov eax, dword [eax + 4]
jmp 0x50a643
mov ecx, dword [ebp - 0x40]
push 0x572aed
call fcn.00405500
push dword [ebp - 0x54]
mov dword [ebp - 0x48], 1
call fcn.0055047a
pop ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
call fcn.004028d0
mov dword [ebp - 0x88], 0x572840
lea ecx, [ebp - 0x88]
call fcn.0054dfcb
mov eax, dword [ebp - 0x40]
jmp 0x50a682
add eax, 4
push eax
mov ecx, esi
call fcn.00405500
push 0
push ebx
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x48], ebx
call fcn.00402c50
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
call fcn.004028d0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0x572840
call fcn.0054dfcb
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
leave
ret