Function at 0x1002a580
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10048ae9
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x10080180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
sub esp, 8
lea ecx, [edi + 0x64]
mov eax, esp
mov dword [ebp - 0x80], ecx
mov dword [eax], str.Connecting_to_matchmaking_server
mov dword [eax + 4], 0x20
call fcn.100152f0
mov eax, dword fs:[0x2c]
xorps xmm0, xmm0
mov ecx, dword [0x100819b4]
mov dword [edi + 0x10], 2
movlpd qword [ebp - 0x94], xmm0
movlpd qword [ebp - 0x8c], xmm0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10081388]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x9c], 2
mov dword [ebp - 0x98], 1
mov dword [ebp - 0xa0], 1
cmp eax, dword [ecx + 4]
jg 0x1002aa2d
movzx eax, word [0x10081318]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.1001afb0
add esp, 8
lea ecx, [ebp - 0x79]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10018ca0
cmp dword [ebp - 0x2c], 0xf
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x40]
mov eax, 0x10081300
cmova ecx, dword [ebp - 0x40]
lea edx, [ebp - 0xa0]
cmp dword [0x10081314], 0xf
push edx
cmova eax, dword [0x10081300]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
cmp ecx, 0xf
jbe 0x1002a6c3
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002a6b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002a6b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10044f67
add esp, 8
test esi, esi
je 0x1002a7c2
push 0
push 0x400
push 0x10080ef8
push 0x400
push esi
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp dword [0x10080074], 2
jl 0x1002a9da
sub esp, 8
mov dword [ebp - 0x18], esi
mov eax, esp
mov dword [ebp - 0x14], 0x10080ef8
xorps xmm0, xmm0
mov dword [ebp - 4], 0xffffffff
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x10000000
mov dword [ebp - 0x1c], 0xb0000004
push 0x24
mov dword [eax], 2
mov dword [eax + 4], ecx
lea eax, [ebp - 0x40]
push str.getaddrinfo_failed_with_error_:_
push eax
call fcn.1000c8c0
add esp, 0x14
cmp dword [eax + 0x14], 0xf
mov edx, eax
mov dword [ebp - 4], 4
jbe 0x1002a753
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push edx
sub esp, 8
mov eax, esp
sub esp, 8
mov dword [eax], str.e_31m
mov dword [eax + 4], 5
mov eax, esp
push ecx
mov ecx, dword [ebp - 0x80]
mov dword [eax], str.Error
mov dword [eax + 4], 5
call fcn.100120c0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1002a9da
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002a9d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002a9d0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [ebp - 0x74]
test esi, esi
je 0x1002a92a
nop dword [eax]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
jne 0x1002a8c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
cmp dword [0x10080074], 5
jl 0x1002a914
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
sub esp, 8
mov dword [ebp - 0x18], 0xb0000000
mov eax, esp
mov dword [ebp - 4], 0xffffffff
push 0x24
mov dword [eax], 1
mov dword [eax + 4], ecx
lea eax, [ebp - 0x40]
push str.Client:_Socket_failed_with_error:_
push eax
call fcn.1000c8c0
add esp, 0x14
cmp dword [eax + 0x14], 0xf
mov edx, eax
mov dword [ebp - 4], 6
jbe 0x1002a84f
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push edx
sub esp, 8
mov eax, esp
sub esp, 8
mov dword [eax], str.e_35m
mov dword [eax + 4], 5
mov eax, esp
push ecx
mov dword [eax], str.Debug
mov dword [eax + 4], 5
lea eax, [edi + 0x64]
mov ecx, eax
call fcn.100120c0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x1002a914
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002a8b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002aae2
push ecx
push edx
call fcn.10044f67
add esp, 8
jmp 0x1002a914
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1002a91f
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Client:_Couldnt_connect_to_server:_
mov dword [eax + 4], 0x26
lea eax, [edi + 0x64]
mov ecx, eax
call fcn.10017750
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1002a7d0
mov esi, dword [ebp - 0x74]
test esi, esi
jne 0x1002a9de
cmp dword [0x10080074], 2
jl 0x1002a9da
sub esp, 8
mov eax, esp
push 0x22
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [ebp - 0x58]
push str.Signaling_client_failed_to_connect
push eax
call fcn.1000c8c0
add esp, 0x14
cmp dword [eax + 0x14], 0xf
mov ecx, eax
mov dword [ebp - 4], 7
jbe 0x1002a96d
mov ecx, dword [eax]
push dword [eax + 0x10]
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push ecx
mov ecx, dword [ebp - 0x80]
sub esp, 8
mov eax, esp
sub esp, 8
mov dword [eax], str.e_31m
mov dword [eax + 4], 5
mov eax, esp
push edx
mov dword [eax], str.Error
mov dword [eax + 4], 5
call fcn.100120c0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1002a9da
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002a9d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002a9d0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10044f67
add esp, 8
xor al, al
jmp 0x1002aa12
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
movaps xmm0, xmmword [0x10055a20]
lea ecx, [edi + 0x64]
sub esp, 8
mov eax, esp
movups xmmword [edi], xmm0
mov dword [eax], str.Successfully_connected_to_matchmaking_server
mov dword [eax + 4], 0x2c
call fcn.100152f0
mov dword [edi + 0x10], 3
mov al, 1
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.10044f75
mov esp, ebp
pop ebp
ret
push 0x10081388
call fcn.1004533c
add esp, 4
cmp dword [0x10081388], 0xffffffff
jne 0x1002a635
mov eax, dword [0x10054078]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
movq xmm0, qword [str.CrownLink.json]
mov ax, word [0x1005407c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0xe
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov word [ebp - 0x1c], ax
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x6c]
call fcn.100246f0
push 0x10081300
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1002ac30
lea ecx, [ebp - 0x50]
call fcn.1000f550
lea ecx, [ebp - 0x68]
call fcn.1000f5d0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x1002aaf4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002aae8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002aae8
jmp 0x1002aae2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10044f67
add esp, 8
jmp 0x1002aaf4
push 0x10049810
call fcn.100452ab
push 0x10081388
mov dword [ebp - 4], 0xffffffff
call fcn.100452eb
add esp, 8
jmp 0x1002a635