Function at 0x574130
Capabilities:
Connect socket

Disassembly:
push rbp
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x58], rbp
mov dword [rbp + 0xb0], ecx
mov word [rbp + 0xb8], dx
nop
mov eax, dword [rbp + 0x78]
add dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x7c]
cmp eax, dword [rbp + 0x7c]
jle 0x574197
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x7c]
lea r8, [rbp + 0x78]
call fcn.0056b310
mov qword [rbp + 0x88], 0
nop
mov dword [rbp + 0x78], 0
mov eax, dword [rbp + 0x60]
imul eax, eax, 0x2be
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x68]
add eax, dword [rbp + 0x64]
cmp eax, dword [rbp + 0x7c]
jle 0x5741cd
mov eax, dword [rbp + 0x64]
add eax, 0x206
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x68]
add eax, dword [rbp + 0x68]
cmp dword [rbp + 0x70], eax
jne 0x5741e4
mov eax, dword [rbp + 0x6c]
add eax, 0x10d
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x70]
add eax, 0x71
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x74], eax
add dword [rbp + 0x78], 1
cmp dword [rbp + 0x78], 3
jne 0x5741aa
nop
mov dword [rbp + 0x74], 0
mov eax, dword [rbp + 0x68]
sub eax, dword [rbp + 0x60]
cmp eax, dword [rbp + 0x7c]
jge 0x57421c
mov eax, dword [rbp + 0x64]
add eax, 0x21f
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x68]
add eax, dword [rbp + 0x64]
cmp dword [rbp + 0x70], eax
jne 0x574233
mov eax, dword [rbp + 0x6c]
add eax, 0x107
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x70]
add eax, 0x4a
mov dword [rbp + 0x78], eax
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x78]
add dword [rbp + 0x7c], eax
add dword [rbp + 0x74], 1
cmp dword [rbp + 0x74], 3
jne 0x574205
nop
mov eax, dword [rbp + 0x7c]
cmp eax, dword [rbp + 0x78]
jle 0x574270
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x7c]
lea r8, [rbp + 0x74]
call fcn.0056e0e0
mov eax, dword [rbp + 0x78]
sub dword [rbp + 0x7c], eax
lea rcx, [rbp + 0x80]
call fcn.0040e5d0
mov eax, 0x58
sub eax, dword [rbp + 0x78]
cmp eax, 0xff
jge 0x574299
mov eax, dword [rbp + 0x78]
sub dword [rbp + 0x7c], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x005d1ca0]
call fcn.0040fe40
mov eax, dword [rbp + 0x78]
sub eax, dword [rbp + 0x74]
mov dword [rbp + 0x7c], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x005d1cf0]
call fcn.0040fe40
mov eax, dword [rbp + 0x78]
sub dword [rbp + 0x7c], eax
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.0042be80
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x50]
call fcn.0040fe40
mov eax, dword [rbp + 0x78]
sub dword [rbp + 0x7c], eax
lea rcx, [rbp + 0x80]
lea rdx, [0x005749b4]
call fcn.0040fe40
mov eax, dword [rbp + 0x78]
add dword [rbp + 0x7c], eax
lea rcx, [rbp + 0x48]
mov edx, 3
call fcn.0042be80
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x48]
call fcn.0040fe40
mov eax, dword [rbp + 0x7c]
add eax, dword [rbp + 0x7c]
mov dword [rbp + 0x60], eax
lea rcx, [rbp + 0x40]
mov edx, 2
call fcn.0042be80
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x40]
call fcn.0040fe40
mov eax, dword [rbp + 0x7c]
add eax, dword [rbp + 0x7c]
mov dword [rbp + 0x60], eax
lea rcx, [rbp + 0x80]
lea rdx, [0x005749c4]
call fcn.0040fe40
mov eax, dword [rbp + 0x7c]
imul eax, eax, 0x2dd
mov dword [rbp + 0x60], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x005d1cf8]
call fcn.0040fe40
mov eax, dword [rbp + 0x60]
sub eax, 0x2c2
mov dword [rbp + 0x64], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x005d1d28]
call fcn.0040fe40
mov eax, dword [rbp + 0x60]
sub eax, 0x286
mov dword [rbp + 0x64], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x005d1d28]
call fcn.0040fe40
mov eax, dword [rbp + 0x78]
add eax, dword [rbp + 0x74]
mov ecx, dword [rbp + 0x74]
add ecx, dword [rbp + 0x70]
cmp eax, ecx
jge 0x5743f1
lea rcx, [rbp + 0x78]
lea rdx, [rbp + 0x74]
lea r8, [rbp + 0x70]
lea r9, [rbp + 0x6c]
call fcn.00539f40
mov dword [rbp + 0x78], 0
cmp dword [rbp + 0x78], 1
jge 0x574443
add dword [rbp + 0x78], 1
mov eax, dword [rbp + 0x68]
add eax, dword [rbp + 0x64]
cmp eax, dword [rbp + 0x60]
jle 0x574419
mov eax, dword [rbp + 0x68]
imul eax, eax, 0x1d1
mov dword [rbp + 0x6c], eax
mov eax, dword [rbp + 0x6c]
add eax, dword [rbp + 0x68]
cmp dword [rbp + 0x74], eax
jne 0x574430
mov eax, dword [rbp + 0x70]
add eax, 0xb8
mov dword [rbp + 0x74], eax
mov dword [rbp + 0x7c], 0
mov eax, dword [rbp + 0x7c]
add dword [rbp + 0x7c], eax
cmp dword [rbp + 0x78], 1
jl 0x5743fe
nop
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x7c]
lea r8, [rbp + 0x78]
call fcn.0056f180
mov eax, dword [rbp + 0x7c]
imul eax, eax, 0x307
mov dword [rbp + 0x60], eax
mov ecx, 2
mov edx, 1
xor r8, r8
call sub.ws2_32.dll_socket
mov qword [rbp + 0x88], rax
mov eax, dword [rbp + 0x7c]
add eax, dword [rbp + 0x78]
mov ecx, dword [rbp + 0x74]
add ecx, dword [rbp + 0x70]
cmp eax, ecx
jge 0x5744b3
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x78]
lea r8, [rbp + 0x74]
lea r9, [rbp + 0x70]
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
call fcn.00536bb0
mov eax, 0x13a
sub eax, dword [rbp + 0x6c]
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x68]
imul eax, eax, 0x19f
mov dword [rbp + 0x6c], eax
cmp qword [rbp + 0x88], 0
jbe 0x57491f
mov dword [rbp + 0x74], 0
mov eax, dword [rbp + 0x60]
sub eax, 0x2a9
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
sub eax, dword [rbp + 0x60]
cmp dword [rbp + 0x6c], eax
jne 0x574503
mov eax, 0x190
sub eax, dword [rbp + 0x68]
mov dword [rbp + 0x6c], eax
mov eax, dword [rbp + 0x78]
sub eax, dword [rbp + 0x74]
mov ecx, dword [rbp + 0x70]
sub ecx, dword [rbp + 0x6c]
cmp eax, ecx
jle 0x57451c
mov eax, dword [rbp + 0x70]
add eax, 0x77
mov dword [rbp + 0x78], eax
mov eax, dword [rbp + 0x78]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x78]
mov dword [rbp + 0x7c], eax
add dword [rbp + 0x74], 1
cmp dword [rbp + 0x74], 3
jne 0x5744e0
nop
mov dword [rbp + 0x78], 0
mov eax, dword [rbp + 0x68]
add eax, dword [rbp + 0x64]
cmp eax, dword [rbp + 0x60]
jle 0x574551
mov eax, dword [rbp + 0x68]
imul eax, eax, 0x1ca
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x74]
sub eax, dword [rbp + 0x70]
mov ecx, dword [rbp + 0x6c]
sub ecx, dword [rbp + 0x68]
cmp eax, ecx
jle 0x574567
mov eax, dword [rbp + 0x70]
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x74]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x74]
sub dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x7c]
imul eax, eax, 0x2fc
mov dword [rbp + 0x60], eax
add dword [rbp + 0x78], 1
cmp dword [rbp + 0x78], 3
jne 0x57453a
nop
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x7c]
lea r8, [rbp + 0x7c]
call fcn.00569980
mov eax, dword [rbp + 0x7c]
imul eax, eax, 0x2c4
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x7c]
imul eax, eax, 0x2e9
mov dword [rbp + 0x60], eax
lea rcx, [rbp + 0x90]
mov edx, 0x10
xor r8, r8
call fcn.0040a770
mov eax, dword [rbp + 0x60]
sub eax, 0x29f
mov dword [rbp + 0x64], eax
mov word [rbp + 0x90], 2
sub dword [rbp + 0x64], 0x248
mov eax, dword [rbp + 0x7c]
add dword [rbp + 0x7c], eax
movzx rcx, word [rbp + 0xb8]
call sub.ws2_32.dll_htons
mov word [rbp + 0x92], ax
mov eax, dword [rbp + 0x7c]
cmp eax, dword [rbp + 0x78]
jle 0x574631
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x78]
lea r8, [rbp + 0x78]
lea r9, [rbp + 0x70]
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
call fcn.0056f650
mov dword [rbp + 0x78], 0
mov eax, dword [rbp + 0x68]
sub eax, dword [rbp + 0x60]
cmp eax, dword [rbp + 0x7c]
jge 0x57464f
mov eax, dword [rbp + 0x64]
add eax, 0x218
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x6c]
add eax, dword [rbp + 0x64]
cmp dword [rbp + 0x74], eax
jne 0x574666
mov eax, dword [rbp + 0x6c]
add eax, 0xff
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x70]
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x7c], eax
add dword [rbp + 0x78], 1
cmp dword [rbp + 0x78], 3
jne 0x574638
nop
mov dword [rbp + 0x78], 0
mov eax, dword [rbp + 0x68]
add eax, dword [rbp + 0x64]
cmp eax, dword [rbp + 0x60]
jle 0x5746a1
mov eax, dword [rbp + 0x68]
imul eax, eax, 0x1d5
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x74]
sub eax, dword [rbp + 0x70]
mov ecx, dword [rbp + 0x6c]
sub ecx, dword [rbp + 0x68]
cmp eax, ecx
jle 0x5746bd
mov eax, dword [rbp + 0x70]
add eax, 0xbd
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x7c]
imul eax, dword [rbp + 0x74]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x74]
sub dword [rbp + 0x7c], eax
add dword [rbp + 0x78], 1
cmp dword [rbp + 0x78], 3
jne 0x57468a
nop
mov eax, 0x19d
sub eax, dword [rbp + 0x68]
mov dword [rbp + 0x6c], eax
mov eax, dword [rbp + 0x64]
add eax, 0x1e2
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x64]
add eax, 0x226
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x64]
add eax, 0x22a
mov dword [rbp + 0x68], eax
lea rcx, [rbp + 0x38]
mov edx, dword [rbp + 0xb0]
call fcn.0056b5d0
mov rcx, qword [rbp + 0x38]
call fcn.0040f2d0
mov rcx, rax
call sub.ws2_32.dll_inet_addr
mov dword [rbp + 0x94], eax
mov dword [rbp + 0x78], 0
mov eax, dword [rbp + 0x60]
sub eax, 0x2a6
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x6c]
add eax, dword [rbp + 0x64]
cmp eax, dword [rbp + 0x64]
jle 0x57475e
mov eax, 0x16e
sub eax, dword [rbp + 0x6c]
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x78]
add eax, dword [rbp + 0x74]
mov ecx, dword [rbp + 0x70]
add ecx, dword [rbp + 0x70]
cmp eax, ecx
jge 0x574774
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x74]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x74]
sub dword [rbp + 0x7c], eax
add dword [rbp + 0x78], 1
cmp dword [rbp + 0x78], 3
jne 0x57473b
nop
mov eax, dword [rbp + 0x7c]
cmp eax, dword [rbp + 0x78]
jle 0x5747a8
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x78]
lea r8, [rbp + 0x74]
call fcn.00572d40
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x7c]
lea r8, [rbp + 0x78]
lea r9, [rbp + 0x74]
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x28], rax
call fcn.0056f650
mov eax, dword [rbp + 0x7c]
cmp eax, dword [rbp + 0x78]
jle 0x5747e8
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x7c]
lea r8, [rbp + 0x78]
call fcn.0056fa20
mov eax, dword [rbp + 0x60]
sub eax, 0x299
mov dword [rbp + 0x64], eax
mov rcx, qword [rbp + 0x88]
lea rdx, [rbp + 0x90]
mov r8d, 0x10
call sub.ws2_32.dll_connect
test eax, eax
je 0x57487d
mov eax, dword [rbp + 0x64]
add eax, 0x1f8
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x60]
sub eax, 0x25c
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x60]
sub eax, 0x281
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x60]
sub eax, 0x2c5
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x7c]
imul eax, eax, 0x2ea
mov dword [rbp + 0x60], eax
mov rcx, qword [rbp + 0x88]
call fcn.00573960
mov eax, dword [rbp + 0x60]
sub eax, 0x272
mov dword [rbp + 0x64], eax
mov qword [rbp + 0x88], 0
mov eax, dword [rbp + 0x68]
imul eax, eax, 0x1b9
mov dword [rbp + 0x6c], eax
mov dword [rbp + 0x74], 0
mov eax, dword [rbp + 0x60]
sub eax, 0x2a3
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x68]
sub eax, dword [rbp + 0x64]
cmp dword [rbp + 0x6c], eax
jne 0x5748a7
mov eax, 0x14a
sub eax, dword [rbp + 0x6c]
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x78]
add eax, dword [rbp + 0x74]
mov ecx, dword [rbp + 0x70]
add ecx, dword [rbp + 0x70]
cmp eax, ecx
jge 0x5748bd
mov eax, dword [rbp + 0x70]
mov dword [rbp + 0x78], eax
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x78]
add dword [rbp + 0x7c], eax
add dword [rbp + 0x74], 1
cmp dword [rbp + 0x74], 3
jne 0x574884
nop
mov eax, dword [rbp + 0x7c]
cmp eax, dword [rbp + 0x7c]
jle 0x5748f1
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x7c]
lea r8, [rbp + 0x78]
call fcn.0056b310
mov eax, dword [rbp + 0x78]
add dword [rbp + 0x7c], eax
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x7c]
lea r8, [rbp + 0x78]
call fcn.0056bb50
mov eax, dword [rbp + 0x7c]
imul eax, eax, 0x2cd
mov dword [rbp + 0x60], eax
jmp 0x57491e
nop
lea rcx, [rbp + 0x38]
call fcn.0040e620
lea rcx, [rbp + 0x40]
mov edx, 3
call fcn.0040e6b0
lea rcx, [rbp + 0x80]
call fcn.0040e5d0
mov rax, qword [rbp + 0x88]
lea rsp, [rbp + 0xa0]
pop rbp
ret