Function at 0x40be10
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
sub esp, 0xb8
push esi
push edi
mov edi, ecx
lea eax, [esp + 8]
mov ecx, dword [esp + 0xc4]
push eax
add ecx, 0xb8
push 7
push ecx
mov dword [esp + 0x1c], edi
call fcn.004105a0
add esp, 0xc
test eax, eax
je 0x40c0bb
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call esi
lea edx, [esp + 0xc]
mov dword [esp + 0x18], eax
push edx
push 7
push 0
call fcn.004105a0
add esp, 0x10
test eax, eax
je 0x40c0bb
push ebx
push ebp
push eax
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
push 7
push 0
call fcn.004105a0
add esp, 0x10
test eax, eax
je 0x40c036
push 0x50
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004410f0
lea edx, [esp + 0x1c]
push edx
push 7
push 0
call fcn.004105a0
add esp, 0x18
test eax, eax
je 0x40c036
push 0x50
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004410f0
lea ecx, [esp + 0x1c]
push ecx
push 7
push 0
call fcn.004105a0
add esp, 0x18
test eax, eax
je 0x40c036
push eax
call dword [sym.imp.MSVCRT.dll_atol]
lea edx, [esp + 0x24]
mov ebx, eax
push edx
and bl, 0
call fcn.00410ad0
add esp, 8
test eax, eax
je 0x40bf04
test ebx, 0x400000
je 0x40c00e
lea eax, [esp + 0x10]
push eax
push 7
push 0
call fcn.004105a0
add esp, 0xc
test eax, eax
je 0x40c036
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc0], eax
push ecx
push 7
push 0
call fcn.004105a0
add esp, 0xc
test eax, eax
je 0x40c036
push eax
call esi
lea edx, [esp + 0x14]
mov dword [esp + 0xc8], eax
push edx
push 7
push 0
call fcn.004105a0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x40c036
mov esi, 0x455b7c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40bf92
test cl, cl
je 0x40bf8e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40bf92
add eax, 2
add esi, 2
test cl, cl
jne 0x40bf6e
xor eax, eax
jmp 0x40bf97
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bfa0
mov ebp, 0x45b008
lea eax, [esp + 0x10]
push eax
push 7
push 0
call fcn.004105a0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40c032
mov esi, 0x455b7c
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x40bfe2
test dl, dl
je 0x40bfde
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x40bfe2
add ecx, 2
add esi, 2
test dl, dl
jne 0x40bfbe
xor ecx, ecx
jmp 0x40bfe7
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x40bff0
mov edi, 0x45b008
push edi
or ebx, 1
push ebp
lea ecx, [esp + 0x28]
push ebx
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0040b0f0
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
inc ecx
push 7
push 0
mov dword [esp + 0x20], ecx
call fcn.004105a0
add esp, 0xc
test eax, eax
jne 0x40be8f
jmp 0x40c036
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
pop ebp
test eax, eax
pop ebx
je 0x40c098
cmp eax, dword [esp + 0xc]
jl 0x40c098
cdq
mov ecx, dword [edi + 0x98]
xor eax, edx
sub eax, edx
push eax
mov eax, dword [esp + 0xc8]
push 0x12
push eax
call fcn.004113d0
mov ecx, dword [edi + 0xa4]
mov eax, dword [edi + 0x3c]
push 0
mov edx, dword [ecx + 0x844]
push edx
push 0x105
push eax
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x40c0bb
mov dword [edi + 0xc4], 0x105
pop edi
pop esi
add esp, 0xb8
ret 4
mov ecx, dword [edi + 0xa4]
mov dword [edi + 0xc0], 0
mov eax, dword [ecx + 0x840]
test eax, eax
je 0x40c0bb
push 1
mov ecx, edi
call fcn.0040b9e0
pop edi
pop esi
add esp, 0xb8
ret 4