Function at 0x486660
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x56629f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
mov eax, dword [0x5af710]
xor eax, esp
push ebx
push ebp
xor ebx, ebx
push esi
mov dword [esp + 0x260], eax
mov eax, dword [esp + 0x274]
mov dword [esp + 0x14], ebx
mov esi, 0xf
push edi
mov ebp, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x22c], esi
mov dword [esp + 0x228], ebx
mov byte [esp + 0x218], bl
mov dword [esp + 0x270], 1
mov dword [esp + 0x1bc], esi
mov dword [esp + 0x1b8], ebx
mov byte [esp + 0x1a8], bl
mov dword [esp + 0x210], esi
mov dword [esp + 0x20c], ebx
mov byte [esp + 0x1fc], bl
mov dword [esp + 0x1d8], esi
mov dword [esp + 0x1d4], ebx
mov byte [esp + 0x1c4], bl
mov dword [esp + 0x1f4], esi
mov dword [esp + 0x1f0], ebx
mov byte [esp + 0x1e0], bl
mov dword [esp + 0x1a0], esi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], bl
mov edi, dword [0x5b096c]
add edi, 0x5e0
push edi
mov byte [esp + 0x274], 6
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [ebp + 0x594]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 2
lea ecx, [esp + 0x24]
push ebp
push ecx
call fcn.005048e9
add esp, 0xc
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
mov byte [esp + 0x270], 7
jb 0x48677f
mov eax, dword [eax + 4]
jmp 0x486782
add eax, 4
lea edx, [esp + 0x188]
push edx
lea ecx, [esp + 0x1e0]
push ecx
lea edx, [esp + 0x1c8]
push edx
lea ecx, [esp + 0x204]
push ecx
lea edx, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x228]
push ecx
push eax
call fcn.005060c5
mov ecx, dword [esp + 0x54]
add esp, 0x1c
neg eax
sbb al, al
inc al
cmp ecx, edi
mov byte [esp + 0x13], al
mov byte [esp + 0x270], 6
jb 0x4867e6
mov edx, dword [esp + 0x24]
push edx
call fcn.0055047a
mov al, byte [esp + 0x17]
add esp, 4
cmp al, bl
je 0x486a04
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 1
push 2
lea ecx, [esp + 0x90]
call fcn.00404a20
mov ecx, dword [esp + 0x2c]
push 0x572a6c
push str.GetNetWorkParamByIPAddr
mov edx, dword [esp + 0x32]
push 0x572a4c
mov eax, dword [esp + 0x34]
push 0x572a6c
push 0x572a48
push 0x10000000
push 0x572a40
push ecx
mov ecx, dword [esp + 0x46]
push 0x572a3c
push edx
mov edx, dword [esp + 0x4a]
push 0x572a3c
push eax
mov eax, dword [esp + 0x50]
push 0x572a38
push ecx
push 0x572a34
push edx
push 0x572a34
push eax
push 0x572a38
push 0x3a8
push 0x572a3c
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x90], esp
push esi
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str..SystemCfg.cpp
mov byte [esp + 0x2ec], 8
mov byte [ecx + 4], bl
call fcn.00404640
lea ecx, [esp + 0xd4]
push ecx
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], edi
mov byte [esp + 0x2c4], 9
jb 0x4868be
mov eax, dword [eax + 4]
jmp 0x4868c1
add eax, 4
push eax
lea edx, [esp + 0xe0]
push 0x572a0c
push edx
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
mov eax, dword [esp + 0x80]
add esp, 8
cmp eax, edi
mov byte [esp + 0x270], 8
jb 0x4869ad
mov eax, dword [esp + 0x64]
push eax
call fcn.0055047a
add esp, 4
lea ecx, [esp + 0x88]
push ecx
call fcn.00407930
add esp, 4
lea ecx, [esp + 0xd4]
mov byte [esp + 0x270], 6
call fcn.004028d0
lea ecx, [esp + 0xd4]
mov dword [esp + 0xd4], 0x572840
call fcn.0054dfcb
mov ebp, dword [esp + 0x14]
push ebx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push 0x572aed
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00404640
jmp 0x486a74
push 0x572bf4
lea edx, [esp + 0x18c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0050ba10
add esp, 0xc
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov byte [esp + 0x270], 0xa
je 0x486a51
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x1c], ecx
jne 0x486b7e
mov ebp, dword [esp + 0x14]
push ebx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push 0x572aed
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00404640
lea ecx, [esp + 0x3c]
call fcn.0042ff49
cmp dword [esp + 0x1a0], edi
jb 0x486a8d
mov edx, dword [esp + 0x18c]
push edx
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x1f4], edi
mov dword [esp + 0x1a0], esi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], bl
jb 0x486abb
mov eax, dword [esp + 0x1e0]
push eax
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x1d8], edi
mov dword [esp + 0x1f4], esi
mov dword [esp + 0x1f0], ebx
mov byte [esp + 0x1e0], bl
jb 0x486ae9
mov ecx, dword [esp + 0x1c4]
push ecx
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x210], edi
mov dword [esp + 0x1d8], esi
mov dword [esp + 0x1d4], ebx
mov byte [esp + 0x1c4], bl
jb 0x486b17
mov edx, dword [esp + 0x1fc]
push edx
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x1bc], edi
mov dword [esp + 0x210], esi
mov dword [esp + 0x20c], ebx
mov byte [esp + 0x1fc], bl
jb 0x486b45
mov eax, dword [esp + 0x1a8]
push eax
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x22c], edi
mov dword [esp + 0x1bc], esi
mov dword [esp + 0x1b8], ebx
mov byte [esp + 0x1a8], bl
jb 0x486f52
mov ecx, dword [esp + 0x218]
push ecx
call fcn.0055047a
add esp, 4
mov eax, ebp
jmp 0x4872d1
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], 0x573c00
call fcn.0047b800
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
mov edx, dword [eax]
mov dword [esp + 0x5c], edx
mov byte [esp + 0x270], 0xb
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov word [esp + 0x84], ax
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x18], edi
jb 0x486bd0
mov eax, dword [eax + 4]
jmp 0x486bd3
add eax, 4
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov ebp, eax
push ebp
lea ecx, [esp + 0x50]
call fcn.0040a850
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x18], edi
jb 0x486bf4
mov eax, dword [eax + 4]
jmp 0x486bf7
add eax, 4
push ebx
push ebx
push 0xf4240
push eax
push 1
lea ecx, [esp + 0x90]
call fcn.004738b1
lea eax, [esp + 0x24c]
push eax
push ebp
lea ecx, [esp + 0x54]
call fcn.00409ef0
test eax, eax
jne 0x486f59
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 1
push 2
lea ecx, [esp + 0x90]
call fcn.00404a20
mov edx, dword [esp + 0x2c]
push 0x572a6c
push str.FindArpTable
mov eax, dword [esp + 0x32]
push 0x572a4c
mov ecx, dword [esp + 0x34]
push 0x572a6c
push 0x572a48
push 0x10000000
push 0x572a40
push edx
mov edx, dword [esp + 0x46]
push 0x572a3c
push eax
mov eax, dword [esp + 0x4a]
push 0x572a3c
push ecx
mov ecx, dword [esp + 0x50]
push 0x572a38
push edx
push 0x572a34
push eax
push 0x572a34
push ecx
push 0x572a38
push 0x3bd
push 0x572a3c
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x90], esp
push esi
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str..SystemCfg.cpp
mov byte [esp + 0x2ec], 0xc
mov byte [ecx + 4], bl
call fcn.00404640
lea edx, [esp + 0xd4]
push edx
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], edi
mov byte [esp + 0x2c4], 0xd
jb 0x486cf7
mov eax, dword [eax + 4]
jmp 0x486cfa
add eax, 4
push eax
lea eax, [esp + 0xe0]
push 0x572a0c
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
mov eax, dword [esp + 0x80]
add esp, 8
cmp eax, edi
mov byte [esp + 0x270], 0xc
jb 0x486de6
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0055047a
add esp, 4
lea edx, [esp + 0x88]
push edx
call fcn.00407930
add esp, 4
lea ecx, [esp + 0xd4]
mov byte [esp + 0x270], 0xb
call fcn.004028d0
lea ecx, [esp + 0xd4]
mov dword [esp + 0xd4], 0x572840
call fcn.0054dfcb
mov ebp, dword [esp + 0x14]
push 0x572aed
mov ecx, ebp
call fcn.00405500
lea ecx, [esp + 0x4c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x270], 0xa
call fcn.0041c950
lea ecx, [esp + 0x3c]
call fcn.0042ff49
cmp dword [esp + 0x1a0], edi
jb 0x486e6c
mov eax, dword [esp + 0x18c]
push eax
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x1f4], edi
mov dword [esp + 0x1a0], esi
mov dword [esp + 0x19c], ebx
mov byte [esp + 0x18c], bl
jb 0x486e9a
mov ecx, dword [esp + 0x1e0]
push ecx
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x1d8], edi
mov dword [esp + 0x1f4], esi
mov dword [esp + 0x1f0], ebx
mov byte [esp + 0x1e0], bl
jb 0x486ec8
mov edx, dword [esp + 0x1c4]
push edx
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x210], edi
mov dword [esp + 0x1d8], esi
mov dword [esp + 0x1d4], ebx
mov byte [esp + 0x1c4], bl
jb 0x486ef6
mov eax, dword [esp + 0x1fc]
push eax
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x1bc], edi
mov dword [esp + 0x210], esi
mov dword [esp + 0x20c], ebx
mov byte [esp + 0x1fc], bl
jb 0x486f24
mov ecx, dword [esp + 0x1a8]
push ecx
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x22c], edi
mov dword [esp + 0x1bc], esi
mov dword [esp + 0x1b8], ebx
mov byte [esp + 0x1a8], bl
jb 0x486f52
mov edx, dword [esp + 0x218]
push edx
call fcn.0055047a
add esp, 4
mov eax, ebp
jmp 0x4872d1
mov ecx, dword [esp + 0x250]
push 4
lea eax, [esp + 0x25c]
push eax
push ecx
lea edx, [esp + 0x23c]
push edx
call fcn.0050495c
add esp, 0x10
cmp dword [esp + 0x244], ebx
mov byte [esp + 0x270], 0xe
jne 0x4871a7
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 1
push 2
lea ecx, [esp + 0x90]
call fcn.00404a20
mov ecx, dword [esp + 0x2c]
push 0x572a6c
push 0x579308
mov edx, dword [esp + 0x32]
push 0x572a4c
mov eax, dword [esp + 0x34]
push 0x572a6c
push 0x572a48
push 0x10000000
push 0x572a40
push ecx
mov ecx, dword [esp + 0x46]
push 0x572a3c
push edx
mov edx, dword [esp + 0x4a]
push 0x572a3c
push eax
mov eax, dword [esp + 0x50]
push 0x572a38
push ecx
push 0x572a34
push edx
push 0x572a34
push eax
push 0x572a38
push 0x3c3
push 0x572a3c
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x90], esp
push esi
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str..SystemCfg.cpp
mov byte [esp + 0x2ec], 0xf
mov byte [ecx + 4], bl
call fcn.00404640
lea ecx, [esp + 0xd4]
push ecx
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], edi
mov byte [esp + 0x2c4], 0x10
jb 0x487060
mov eax, dword [eax + 4]
jmp 0x487063
add eax, 4
push eax
lea edx, [esp + 0xe0]
push 0x572a0c
push edx
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
mov eax, dword [esp + 0x80]
add esp, 8
cmp eax, edi
mov byte [esp + 0x270], 0xf
jb 0x48714f
mov eax, dword [esp + 0x64]
push eax
call fcn.0055047a
add esp, 4
lea ecx, [esp + 0x88]
push ecx
call fcn.00407930
add esp, 4
lea ecx, [esp + 0xd4]
mov byte [esp + 0x270], 0xe
call fcn.004028d0
lea ecx, [esp + 0xd4]
mov dword [esp + 0xd4], 0x572840
call fcn.0054dfcb
mov esi, dword [esp + 0x14]
push 0x572aed
mov ecx, esi
call fcn.00405500
mov dword [esp + 0x18], 1
jmp 0x487261
push 1
push 2
lea ecx, [esp + 0x110]
call fcn.00404a20
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x230]
push edx
push 0x572ff4
push eax
lea ecx, [esp + 0x114]
push ecx
mov byte [esp + 0x280], 0x11
call fcn.0040b751
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.0040b751
add esp, 8
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x10c]
call fcn.00407320
cmp dword [eax + 0x18], edi
mov byte [esp + 0x270], 0x12
jb 0x487216
mov eax, dword [eax + 4]
jmp 0x487219
add eax, 4
mov esi, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00405500
lea ecx, [esp + 0x60]
mov dword [esp + 0x18], 1
call fcn.004f5270
lea ecx, [esp + 0x154]
mov byte [esp + 0x270], 0xe
call fcn.004028d0
lea ecx, [esp + 0x154]
mov dword [esp + 0x154], 0x572840
call fcn.0054dfcb
lea ecx, [esp + 0x230]
call fcn.004f5270
lea ecx, [esp + 0x4c]
mov byte [esp + 0x270], 0xa
call fcn.0041c950
lea ecx, [esp + 0x3c]
call fcn.0042ff49
lea ecx, [esp + 0x188]
call fcn.004f5270
lea ecx, [esp + 0x1dc]
call fcn.004f5270
lea ecx, [esp + 0x1c0]
call fcn.004f5270
lea ecx, [esp + 0x1f8]
call fcn.004f5270
lea ecx, [esp + 0x1a4]
call fcn.004f5270
lea ecx, [esp + 0x214]
call fcn.004f5270
mov eax, esi
mov ecx, dword [esp + 0x268]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x25c]
pop ebp
pop ebx
xor ecx, esp
call fcn.0053aaae
add esp, 0x264
ret 4