Function at 0x10045037
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x100cfa88
call fcn.10030644
mov eax, 0x160c
call fcn.10031830
push ebx
push esi
push edi
mov edi, 0x15f0
xor ebx, ebx
push edi
lea eax, [ebp - 0x1618]
push ebx
mov esi, ecx
push eax
call fcn.10031000
add esp, 0xc
mov dword [ebp - 0x1618], edi
mov dword [ebp - 0x884], 0x1e
mov dword [ebp - 0x880], 0x3c
push 0x56
mov dword [ebp - 0x14d4], 4
pop eax
mov dword [ebp - 0x160c], eax
mov dword [ebp - 0x1610], eax
mov eax, dword [esi + 0x36d8]
push 1
mov edi, eax
and ax, bx
or eax, 0x38000000
and edi, 0xff
or dword [ebp - 0x1614], eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x888], ecx
je 0x100450cb
or byte [ebp - 0x1613], 0x10
cmp dword [esi + 0x36dc], ebx
jne 0x100450da
or dword [ebp - 0x1614], 0x20
cmp dword [esi + 0x36e0], ebx
je 0x100450e9
or byte [ebp - 0x1613], 2
cmp dword [esi + 0x358c], ecx
je 0x100450fa
cmp byte [esi + 0x3558], 0
je 0x10045101
or dword [ebp - 0x1614], 0x10
or dword [ebp - 0x874], 0xffffffff
lea ebx, [esi + 0x3518]
push 0x10109650
push ebx
mov dword [ebp - 0x14d0], ecx
mov dword [ebp - 0x87c], 0xa
mov dword [ebp - 0x878], 0x78
mov dword [ebp - 0x870], 2
call fcn.100038e0
pop ecx
test al, al
pop ecx
jne 0x10045186
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x1004514f
mov ebx, 0x100d6d1c
push 0
call dword [sym.imp.WSOCK32.dll_htons]
push ebx
call dword [sym.imp.WSOCK32.dll_inet_addr]
or dword [ebp - 0x1614], 2
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x14ec], al
mov al, byte [ebp - 0x22]
mov byte [ebp - 0x14ea], al
mov al, byte [ebp - 0x21]
mov byte [ebp - 0x14eb], ah
mov byte [ebp - 0x14e9], al
lea eax, [ebp - 0xeb4]
push 0x10101e58
push eax
call fcn.10031161
mov eax, dword [esi + 0x34ec]
pop ecx
test eax, eax
pop ecx
mov ebx, 0x100d6e28
jne 0x100451aa
mov eax, ebx
push eax
lea eax, [ebp - 0x15f2]
push eax
call fcn.10031161
mov eax, dword [esi + 0x36f8]
pop ecx
pop ecx
push 1
pop ecx
cmp eax, ecx
mov dword [ebp - 0x64c], ecx
jne 0x100451ea
mov ecx, esi
call fcn.1004fcad
test al, al
jne 0x100451de
mov ecx, esi
call fcn.1004fe57
mov dword [ebp - 0x64c], 4
jmp 0x10045218
cmp eax, 0xb
jne 0x1004520d
mov ecx, esi
call fcn.1004fcad
test al, al
jne 0x10045201
mov ecx, esi
call fcn.1004fe57
mov dword [ebp - 0x64c], 3
jmp 0x10045218
cmp eax, 0xa
jne 0x10045218
mov dword [ebp - 0x64c], ecx
mov eax, dword [esi + 0x34dc]
mov dword [ebp - 0x86c], edi
test eax, eax
mov ecx, ebx
je 0x1004522c
mov ecx, eax
mov eax, dword [esi + 0x2f4]
test eax, eax
je 0x1004523a
mov eax, dword [eax]
jmp 0x1004523c
xor eax, eax
push ecx
push eax
call sub.RASAPI32.dll_RasValidateEntryNameW
mov eax, dword [esi + 0x34dc]
test eax, eax
jne 0x1004524f
mov eax, ebx
mov ecx, dword [esi + 0x2f4]
test ecx, ecx
je 0x1004525d
mov ecx, dword [ecx]
jmp 0x1004525f
xor ecx, ecx
push 0
push 0
lea edx, [ebp - 0x1618]
push 0x15f0
push edx
push eax
push ecx
call sub.RASAPI32.dll_RasSetEntryPropertiesW
mov ebx, eax
mov eax, dword [esi + 0x2f4]
test eax, eax
je 0x10045286
mov edi, dword [eax]
jmp 0x10045288
xor edi, edi
mov ecx, dword [0x1010f66c]
lea eax, [ebp - 0x10]
push eax
call fcn.100c6099
and dword [ebp - 4], 0
push 0x100fca04
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100c130c
push edi
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.100c130c
mov esi, dword [esi + 0x34dc]
mov eax, dword [eax]
test esi, esi
mov byte [ebp - 4], 2
jne 0x100452ce
mov esi, 0x100d6e28
push eax
push 0x10101e54
push 0x10101e20
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.100c1067
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.100c1067
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100c1067
mov ecx, dword [ebp - 0xc]
xor eax, eax
test ebx, ebx
pop edi
pop esi
sete al
pop ebx
mov dword fs:[0], ecx
leave
ret