Function at 0x475990
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [0x5cb9dc]
sub esp, 0x104
test eax, eax
push esi
mov esi, ecx
jne 0x4759ac
xor eax, eax
pop esi
add esp, 0x104
ret
test esi, esi
je 0x4759c4
mov ecx, dword [esi + 0x540]
call fcn.004f0af0
test eax, eax
je 0x4759a2
mov eax, dword [0x5cb9dc]
mov ecx, dword [eax + 0x138]
test ecx, ecx
push ebp
push edi
je 0x475ab5
test esi, esi
je 0x475aa6
mov ecx, dword [esi + 0x12c]
test ecx, ecx
je 0x475aa6
cmp esi, eax
je 0x475aa6
mov eax, dword [esi + 0x130]
cmp eax, 5
je 0x475aa6
cmp eax, 0x33
je 0x475aa6
cmp eax, 0x34
je 0x475aa6
lea eax, [esi + 0x64]
push eax
xor edx, edx
mov ecx, 0x7d2
call fcn.0041f1a0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x14]
push ecx
call ebp
mov eax, dword [0x5cb9dc]
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x475a7b
nop
mov eax, dword [eax + 0x544]
inc ecx
test eax, eax
jne 0x475a40
cmp ecx, 1
jle 0x475a7b
lea eax, [esp + 0xc]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x475a57
sub eax, edi
dec ecx
push ecx
xor edx, edx
mov ecx, 0x7d3
mov edi, eax
call fcn.0041f1a0
push eax
lea edx, [esp + edi + 0x14]
push edx
call ebp
add esp, 0xc
mov eax, dword [0x5c9d54]
mov dword [0x5bfd5c], 0
mov dword [0x5f31fc], 1
mov ecx, dword [esi + 0x540]
mov ecx, dword [ecx]
push eax
lea edx, [esp + 0x10]
call fcn.00514ad0
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x104
ret
test esi, esi
jne 0x475abb
mov esi, eax
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x475b80
mov eax, dword [esi + 0x130]
cmp eax, 5
je 0x475b80
cmp eax, 0x33
je 0x475b80
cmp eax, 0x34
je 0x475b80
lea edx, [esi + 0x64]
push edx
xor edx, edx
mov ecx, 0x7d1
call fcn.0041f1a0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [esp + 0x14]
push eax
call ebp
mov eax, dword [0x5cb9dc]
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x475b54
mov eax, dword [eax + 0x544]
inc ecx
test eax, eax
jne 0x475b16
cmp ecx, 1
jle 0x475b54
lea eax, [esp + 0xc]
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x475b30
sub eax, edi
dec ecx
push ecx
xor edx, edx
mov ecx, 0x7d3
mov edi, eax
call fcn.0041f1a0
push eax
lea ecx, [esp + edi + 0x14]
push ecx
call ebp
add esp, 0xc
mov edx, dword [0x5c9d54]
mov dword [0x5bfd5c], 0
mov dword [0x5f31fc], 1
mov eax, dword [esi + 0x540]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x10]
call fcn.00514ad0
mov ecx, dword [esi + 0x540]
call fcn.004f0af0
test eax, eax
jne 0x475b99
pop edi
pop ebp
pop esi
add esp, 0x104
ret
lea edi, [esi + 0x64]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x475bff
push eax
call dword [sym.imp.WSOCK32.dll_htonl]
mov ecx, eax
shr ecx, 0x10
mov edx, ecx
push 0x400
shr edx, 8
lea edi, [esi + 0x13c]
mov byte [edi], dl
movzx eax, ax
lea edx, [esi + 0x140]
push edx
push 2
mov byte [esi + 0x13d], cl
mov ecx, eax
push 4
shr ecx, 8
push edi
mov byte [esi + 0x13e], cl
mov byte [esi + 0x13f], al
mov eax, dword [0x5f92ec]
push 0x800b
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncGetHostByAddr]
jmp 0x475c1d
mov eax, dword [0x5f92ec]
push 0x400
lea edx, [esi + 0x140]
push edx
push edi
push 0x800b
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncGetHostByName]
xor ecx, ecx
test eax, eax
setne cl
pop edi
mov dword [esi + 0x138], eax
pop ebp
pop esi
mov eax, ecx
add esp, 0x104
ret