Function at 0x416fa0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9ab7
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x5299c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c0], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2b8], eax
call fcn.0040a640
mov esi, eax
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2b0], esi
push dword [ebp - 0x2b8]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00403090
cmp dword [ebp - 0x2c], 0x10
lea edi, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
cmovae edi, dword [ebp - 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2bc], ecx
test esi, esi
je 0x417061
cmp dword [esi + 4], 0xffffffff
je 0x417061
mov eax, dword [esi + 4]
add eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x417061
push dword [ebp - 0x2ac]
call fcn.0040a4e0
mov ecx, dword [ebp - 0x2bc]
add esp, 4
lea eax, [ebp - 0x1ac]
push eax
push 0
push ecx
push edi
call fcn.00408c70
add esp, 0x10
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2ac], esi
push 0
push 0x4f6751
mov dword [ebp - 0x2b0], esi
mov byte [ebp - 0x28], 0
call fcn.00403090
mov byte [ebp - 4], 2
call fcn.00416050
mov edi, eax
mov dword [ebp - 0x2c8], edi
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x2b4], esp
push 0xc
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.UDPBroadcast
mov byte [ecx], 0
call fcn.00403090
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
sub esp, 0x18
mov ecx, esp
push 8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.ServerId
mov byte [ecx], 0
call fcn.00403090
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00415710
push 0
push 0x4f6751
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00403090
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
push str.ServerId
lea ecx, [ebp - 0x2b0]
call fcn.004021e0
push 0
push 0x4f6751
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00403090
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
push eax
push str.ServerIp
lea ecx, [ebp - 0x2b0]
call fcn.004021e0
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x2cc]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x4174bf
mov ecx, dword [ebp - 0x2c0]
xorps xmm0, xmm0
movups xmmword [ebp - 0x98], xmm0
mov eax, 2
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x98]
push eax
push 0
push 0x419c90
lea eax, [ebp - 0x88]
push eax
call fcn.00414d20
mov edx, dword [ebp - 0x74]
xor eax, eax
cmp eax, dword [ebp - 0x78]
sbb eax, eax
neg eax
mov dword [ebp - 0x2b4], eax
cmp edx, 0x10
jb 0x41723e
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41722e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41761e
push edx
push ecx
call fcn.004ab6c8
mov eax, dword [ebp - 0x2b4]
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
test eax, eax
je 0x4174bf
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00401e30
lea eax, [ebp - 0x28]
push eax
push str.ServerIp
lea ecx, [ebp - 0x2b0]
call fcn.004021e0
lea ecx, [ebp - 0x2d0]
call fcn.00410da0
push 1
sub esp, 0x18
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0x28]
push ecx
push 0x4f7f74
push eax
call fcn.0040fde0
mov esi, dword [ebp - 0x2d0]
add esp, 0xc
mov ecx, esi
call fcn.0040b340
mov byte [ebp - 4], 5
test esi, esi
je 0x4172fc
push 0x5347f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x534894]
test eax, eax
je 0x4172f0
sub eax, 1
mov dword [0x534894], eax
jne 0x4172f0
mov ecx, dword [0x534890]
test ecx, ecx
je 0x4172f0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x534890], 0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5347f8
call eax
mov esi, dword [ebp - 0x2c0]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [esi + 0x1c]
call fcn.0041b900
mov eax, dword [esi + 0x1c]
mov esi, dword [ebp - 0x2d4]
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2dc], eax
cmp esi, eax
je 0x417350
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040fd10
add esp, 8
test al, al
mov eax, dword [ebp - 0x2b4]
jne 0x417350
mov dword [ebp - 0x2e0], esi
jmp 0x417358
mov dword [ebp - 0x2e4], eax
mov esi, eax
mov dword [ebp - 0x2e8], eax
cmp esi, eax
je 0x41748b
push dword [ebp - 0x2b8]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xa0], 0
push dword [ebp - 0x2c4]
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
call fcn.00403090
mov eax, dword [esi + 0x38]
add esi, 0x28
mov byte [ebp - 4], 8
mov dword [ebp - 0x2c4], eax
cmp dword [esi + 0x14], 0x10
jb 0x4173b0
mov esi, dword [esi]
mov ecx, dword [ebp - 0x2bc]
test ecx, ecx
je 0x4173df
cmp dword [ecx + 4], 0xffffffff
je 0x4173d9
mov eax, dword [ecx + 4]
add eax, 0xffffffff
mov dword [ecx + 4], eax
jne 0x4173d9
push dword [ebp - 0x2ac]
call fcn.0040a4e0
add esp, 4
mov edi, dword [ebp - 0x2c8]
lea eax, [ebp - 0x2a8]
push eax
push 0
push dword [ebp - 0x2c4]
push esi
call fcn.00408c70
add esp, 0x10
lea ecx, [ebp - 0x2b0]
mov esi, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2b0], esi
push eax
push str.ServerIp
call fcn.004021e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 9
cmovae eax, dword [ebp - 0x28]
push str.localhost
push dword [ebp - 0x18]
push eax
call fcn.00401be0
add esp, 0x10
test al, al
jne 0x417467
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 9
cmovae eax, dword [ebp - 0x28]
push str.127.0.0.1
push dword [ebp - 0x18]
push eax
call fcn.00401be0
add esp, 0x10
mov dword [ebp - 0x2b8], 1
test al, al
je 0x417471
mov dword [ebp - 0x2b8], 0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.00401e30
cmp dword [ebp - 0x2b8], 0
je 0x4174c7
jmp 0x417491
mov esi, dword [ebp - 0x2bc]
mov ecx, dword [ebp - 0x2c0]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ecx + 0x1c]
call fcn.00411d30
lea ecx, [ebp - 0x40]
cmp eax, ecx
je 0x4174c7
cmp dword [ebp - 0x2c], 0x10
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.00403090
jmp 0x4174c7
lea ecx, [ebp - 0x70]
call fcn.00401e30
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x4174fb
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4174f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417623
push edx
push ecx
call fcn.004ab6c8
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
test edi, edi
je 0x417554
push 0x5348a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5348c4]
test eax, eax
je 0x417549
sub eax, 1
mov dword [0x5348c4], eax
jne 0x417549
mov ecx, dword [0x5348c0]
test ecx, ecx
je 0x417549
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x5348c0], 0
push 0x5348a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x417588
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41757e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417628
push edx
push ecx
call fcn.004ab6c8
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x4175ca
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4175c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41762d
push edx
push ecx
call fcn.004ab6c8
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test esi, esi
je 0x4175ff
cmp dword [esi + 4], 0xffffffff
je 0x4175ff
mov eax, dword [esi + 4]
add eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4175ff
push dword [ebp - 0x2ac]
call fcn.0040a4e0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ab970
mov esp, ebp
pop ebp
ret 0xc
call fcn.004c6d19
call fcn.004c6d19
call fcn.004c6d19
call fcn.004c6d19
int3