Function at 0x45f940
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3bc3
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xe4], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe0], eax
mov eax, dword [esi]
mov dword [ebp - 0xd8], edi
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x460036
mov eax, dword [eax]
cmp dword [eax], 0
je 0x460036
call fcn.0045da60
mov ecx, dword [ebp - 0xe0]
add edi, 0x18
push edi
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x78]
call fcn.0041f890
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov eax, dword [esi]
cmp byte [ecx + 4], 0
je 0x45fa05
add eax, 0x58
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x45f9e3
mov edx, dword [eax]
push dword [eax + 0x10]
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
push edx
cmovae ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x68]
call fcn.00462da0
add esp, 8
test al, al
je 0x45fa05
mov al, 1
jmp 0x45fa07
xor al, al
mov ecx, dword [esi]
mov byte [ecx + 0x70], al
mov eax, dword [esi]
cmp byte [eax + 0x70], 0
jne 0x45fa1d
mov ecx, esi
call fcn.00460c10
mov eax, dword [esi]
cmp dword [eax + 0x74], 0xffffffff
je 0x45fa2d
cmp dword [eax + 0x78], 0
jne 0x45fecf
cmp dword [edi + 0x14], 0x10
jb 0x45fa35
mov edi, dword [edi]
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x460055
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0xb8], xmm0
mov word [ebp - 0xb8], ax
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0xb4]
push eax
call fcn.0048cb50
mov ecx, dword [ebp - 0xd8]
add esp, 8
mov edx, str.https
call fcn.0045db30
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [ebp - 0xb6], ax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi]
mov dword [ecx + 0x74], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
cmp eax, 0xffffffff
je 0x460086
push 0x10
lea ecx, [ebp - 0xb8]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4600b7
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax]
push dword [eax]
call fcn.00590930
mov ecx, dword [esi]
add esp, 4
mov dword [ecx + 0x78], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x78]
test eax, eax
jne 0x45fb02
lea eax, [ebp - 0x90]
push eax
call fcn.00460120
mov byte [ebp - 4], 4
jmp 0x46006f
push 0
push 0x1000000
push 0x20
push eax
call fcn.0058f8f0
mov eax, dword [esi]
push 0
push 0x2000000
push 0x20
push dword [eax + 0x78]
call fcn.0058f8f0
mov eax, dword [esi]
push dword [eax + 0x74]
push dword [eax + 0x78]
call fcn.00591340
add esp, 0x28
test eax, eax
jne 0x45fb4d
lea eax, [ebp - 0x90]
push eax
call fcn.00460120
mov byte [ebp - 4], 5
jmp 0x46006f
call fcn.004f1f30
call fcn.004f1290
test eax, eax
jne 0x45fb90
nop dword [eax + eax]
call fcn.004b55e5
and eax, 0x8000ffff
jns 0x45fb73
dec eax
or eax, 0xffff0000
inc eax
movzx eax, ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 2
push eax
call fcn.004f11b0
add esp, 8
call fcn.004f1290
test eax, eax
je 0x45fb60
mov eax, dword [esi]
push dword [eax + 0x78]
call fcn.0058f7e0
add esp, 4
cmp eax, 1
je 0x45fbb7
lea eax, [ebp - 0x90]
push eax
call fcn.00460120
mov byte [ebp - 4], 6
jmp 0x46006f
mov eax, dword [esi]
push dword [eax + 0x78]
call fcn.005901e0
push eax
call fcn.00593ce0
add esp, 8
lea ecx, [ebp - 0x90]
push eax
call fcn.0041f830
push 0xa
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 7
call fcn.0041ff80
mov eax, dword [esi]
push dword [eax + 0x78]
call fcn.005901e0
push eax
call fcn.00593d00
add esp, 8
lea ecx, [ebp - 0x44]
push eax
call fcn.0041f830
push 0xa
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.0041ff80
mov eax, dword [esi]
push dword [eax + 0x78]
call fcn.00590470
mov edi, eax
add esp, 4
mov dword [ebp - 0xd4], edi
test edi, edi
je 0x45fe5a
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
xor esi, esi
mov byte [ebp - 4], 9
mov dword [ebp - 0x20], esi
nop dword [eax]
test esi, esi
jle 0x45fc5e
push 0x3a
lea ecx, [ebp - 0x60]
call fcn.0041ff80
movzx eax, byte [edi + esi + 0x50]
push eax
lea eax, [ebp - 0x1c]
push str._02X
push eax
call fcn.004566b0
lea edi, [ebp - 0x1c]
add esp, 0xc
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x45fc80
mov edx, dword [ebp - 0x4c]
sub edi, ecx
mov ecx, dword [ebp - 0x50]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x45fcc0
lea eax, [ecx + edi]
cmp edx, 0x10
mov dword [ebp - 0x50], eax
lea esi, [ebp - 0x60]
cmovae esi, dword [ebp - 0x60]
lea eax, [ebp - 0x1c]
add esi, ecx
push eax
push esi
call fcn.0048c5d0
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x20]
jmp 0x45fcda
lea eax, [ebp - 0x1c]
mov byte [ebp - 0xe8], 0
push eax
push dword [ebp - 0xe8]
lea ecx, [ebp - 0x60]
push edi
call fcn.00454c50
mov edi, dword [ebp - 0xd4]
inc esi
mov dword [ebp - 0x20], esi
cmp esi, 0x14
jl 0x45fc50
push 0xa
lea ecx, [ebp - 0x60]
call fcn.0041ff80
mov esi, dword [ebp - 0xe4]
mov eax, dword [esi]
push dword [eax + 0x78]
call fcn.00590750
add esp, 4
test eax, eax
je 0x45fd72
push eax
call fcn.004f0cd0
add esp, 4
lea ecx, [ebp - 0xd0]
push eax
call fcn.0041f830
push 0xa
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xa
call fcn.0041ff80
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xbc]
cmp edx, 0x10
jb 0x45fd72
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45fd68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4600e8
push edx
push ecx
call fcn.0048333c
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push dword [ebp - 0xd4]
mov byte [ebp - 4], 0xb
call fcn.004f1b70
add esp, 4
mov edi, eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041fdb0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
test edi, edi
je 0x45fdca
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004601a0
lea eax, [ebp - 0x2c]
push eax
call fcn.0045d920
push dword [ebp - 0xd4]
call fcn.004f1b30
add esp, 4
mov edi, eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041fdb0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
test edi, edi
je 0x45fe03
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004601a0
lea eax, [ebp - 0x2c]
push eax
call fcn.0045d920
push dword [ebp - 0xd4]
call fcn.004eece0
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.0041fd30
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x45fe5a
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45fe50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4600e8
push edx
push ecx
call fcn.0048333c
add esp, 8
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x45fe92
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45fe88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4600ed
push edx
push ecx
call fcn.0048333c
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x45fecd
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45fec3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4600ed
push edx
push ecx
call fcn.0048333c
add esp, 8
mov eax, dword [esi]
lea ecx, [eax + 0x58]
lea eax, [ebp - 0x78]
cmp ecx, eax
je 0x45feea
cmp dword [ebp - 0x64], 0x10
push dword [ebp - 0x68]
cmovae eax, dword [ebp - 0x78]
push eax
call fcn.00420130
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x78]
mov ecx, esi
push dword [ebp - 0xdc]
push dword [ebp - 0xd8]
call fcn.0045dc10
push dword [ebp - 0xdc]
lea eax, [ebp - 0xa8]
mov ecx, esi
push dword [ebp - 0xd8]
push eax
call fcn.0045e400
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xa8]
cmp dword [ebp - 0x94], 0x10
push dword [ebp - 0x98]
cmovae eax, dword [ebp - 0xa8]
push eax
mov eax, dword [esi]
push dword [eax + 0x78]
call fcn.004602c0
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x45ff68
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
cmp ecx, eax
je 0x45ff68
sub eax, ecx
push eax
mov eax, dword [esi]
push ecx
push dword [eax + 0x78]
call fcn.004602c0
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0xe0]
sub esp, 0x28
mov dword [eax + 0x50], 0
mov eax, dword [esi]
mov dword [eax + 0x54], 0
mov eax, esp
push dword [ebp + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_63349c6aa77a548e80d85741891eb167___int__char___int_.0
mov dword [eax + 4], esi
mov dword [eax + 0x24], eax
call fcn.0045ef80
mov eax, dword [esi]
cmp byte [eax + 0x70], 0
jne 0x45ffaa
mov ecx, esi
call fcn.00460c10
mov edx, dword [ebp - 0x94]
cmp edx, 0x10
jb 0x45ffe4
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45ffda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4600f2
push edx
push ecx
call fcn.0048333c
add esp, 8
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
cmp eax, 0x10
jb 0x460032
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x460028
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4600f2
push ecx
push edi
call fcn.0048333c
add esp, 8
mov al, 1
jmp 0x460038
xor al, al
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.00482be9
mov esp, ebp
pop ebp
ret 0x10
push str.gethostbyname_failed.
lea ecx, [ebp - 0x90]
call fcn.0041f830
mov byte [ebp - 4], 1
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x48]
call fcn.0045cf50
push 0x63ee08
lea eax, [ebp - 0x48]
push eax
call fcn.0048477e
push str.socket_failed.
lea ecx, [ebp - 0x90]
call fcn.0041f830
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x48]
call fcn.0045cf50
push 0x63ee08
lea eax, [ebp - 0x48]
push eax
call fcn.0048477e
push str.connect_failed.
lea ecx, [ebp - 0x90]
call fcn.0041f830
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x48]
call fcn.0045cf50
push 0x63ee08
lea eax, [ebp - 0x48]
push eax
call fcn.0048477e
call fcn.004904ef
call fcn.004904ef
call fcn.004904ef
int3