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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x250
call 0x452570
pop eax
mov ebx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
movzx eax, byte [edx + 0x254]
test eax, eax
je 0x4525ad
cmp eax, 3
jne 0x4525d0
lea eax, [ebx + 0x138]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0x198]
mov eax, dword [eax*4 + 0x453044]
add eax, dword [esp + 0x30]
jmp eax
mov eax, dword [ebx + 0x240]
mov ecx, dword [ebx + 0x244]
mov dword [ebx + 0x248], eax
mov dword [ebx + 0x24c], ecx
and dword [ebx], 0
mov dword [ebx + 0x250], eax
jmp 0x4525e2
push 0x23
pop edx
mov ecx, str._async_fn__resumed_after_completion
push 0x4d8f38
call fcn.004a0350
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0xc]
je 0x452ea7
lea edx, [ecx + 0x20]
mov dword [eax + 4], edx
movsd xmm0, qword [ecx + 0x18]
movzx edx, word [ecx]
movsd qword [esp + 0x136], xmm0
cmp dx, 2
movsd xmm0, qword [ecx + 0x12]
movsd qword [esp + 0x130], xmm0
movsd xmm0, qword [ecx + 0xa]
movsd qword [esp + 0x128], xmm0
movsd xmm0, qword [ecx + 2]
movsd qword [esp + 0x120], xmm0
je 0x452ea7
mov word [ebx + 0x10], dx
mov word [esp + 0x1c], dx
test dx, dx
movsd xmm0, qword [esp + 0x120]
movsd xmm1, qword [esp + 0x128]
movsd qword [ebx + 0x12], xmm0
movsd qword [ebx + 0x1a], xmm1
movsd xmm0, qword [esp + 0x130]
movsd qword [ebx + 0x22], xmm0
movsd xmm0, qword [esp + 0x136]
movsd qword [ebx + 0x28], xmm0
mov eax, dword [ebx + 0x248]
mov esi, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
push 2
pop eax
push 0x17
pop esi
cmove esi, eax
mov eax, dword [ebx + 0x24c]
mov dword [esp + 4], eax
mov eax, dword [0x50c348]
cmp eax, 3
jne 0x452ef4
push 0x81
push 0
push 0
push 6
push 1
push esi
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x452706
call dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esp + 0x98]
mov edx, str.tcp_open_errortcp_set_nonblocking_errortcp_bind_local_error
mov ecx, esi
push eax
push 0
push 0xe
call fcn.0042c4a3
add esp, 0xc
mov esi, dword [esi]
test esi, esi
jne 0x453016
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
mov dword [eax], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x452729
mov byte [esp + 0x50], 4
jmp 0x452738
call dword [sym.imp.kernel32.dll_GetLastError]
and dword [esp + 0x50], 0
mov dword [esp + 0x54], eax
lea esi, [esp + 0x98]
lea edx, [esp + 0x50]
mov ecx, esi
push 0x19
push 0x4b9ff2
call fcn.0042c6c0
pop eax
pop ecx
mov esi, dword [esi]
mov dword [esp + 8], edi
test esi, esi
jne 0x452f3d
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x10]
mov ecx, dword [eax + 0x20]
cmp esi, 0x3b9aca00
jne 0x45277f
cmp ecx, 0x3b9aca00
je 0x4528ff
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x1c]
mov edx, edi
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x64], eax
lea ecx, [esp + 0x98]
push 1
push 8
call fcn.00477e12
pop eax
pop ecx
lea eax, [esp + 0x98]
cmp byte [eax], 4
je 0x4527ce
mov eax, dword [esp + 0x98]
cmp al, 4
jne 0x4528ec
xor ecx, ecx
cmp esi, 0x3b9aca00
mov edi, 0
je 0x452831
mov eax, dword [esp + 0x24]
mov ecx, 0x3e8
mul ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
mov ebx, edx
mul ecx
mov edi, eax
mov ecx, edx
mov eax, esi
mov esi, 0xf4240
add edi, ebx
adc ecx, 0
xor edx, edx
xor ebx, ebx
div esi
add eax, dword [esp + 0x24]
adc edi, 0
adc ecx, 0
setb dl
neg edi
sbb ebx, ebx
movzx edx, dl
or ebx, eax
xor edi, edi
dec edi
or edx, ecx
mov ecx, 0
cmove edi, ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
cmp eax, 0x3b9aca00
je 0x452897
mov eax, dword [esp + 0x28]
mov ecx, 0x3e8
mul ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
mov ebx, edx
mul ecx
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, edx
mov dword [esp + 0x20], edi
mov edi, 0xf4240
add esi, ebx
adc ecx, 0
xor edx, edx
xor ebx, ebx
div edi
mov edi, dword [esp + 0x20]
add eax, dword [esp + 0x28]
adc esi, 0
adc ecx, 0
setb dl
neg esi
sbb ebx, ebx
movzx edx, dl
or ebx, eax
xor eax, eax
dec eax
or edx, ecx
mov ecx, eax
cmove ecx, ebx
mov ebx, dword [esp + 0xc]
and dword [esp + 0x50], 0
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], ecx
push 0
push 0
lea eax, [esp + 0x58]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0xb0]
push eax
push 0x98000004
push dword [esp + 0x28]
call dword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x4528fb
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
xor eax, eax
jmp 0x4528f3
mov edx, dword [esp + 0x9c]
movzx ecx, al
call fcn.0042b08e
mov eax, dword [esp + 4]
cmp word [esp + 0x1c], 0
je 0x45293d
cmp byte [eax + 0x6a], 0
je 0x45298c
movups xmm0, xmmword [eax + 0x6b]
lea edx, [esp + 0xb4]
push 0x19
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
movups xmmword [edx - 0x14], xmm0
and dword [edx - 4], 0
mov dword [edx - 0x1c], 0x17
and dword [edx - 0x18], 0
mov dword [edx + 0x64], 0x1c
jmp 0x452967
cmp byte [eax + 0x65], 0
je 0x452995
mov esi, dword [eax + 0x66]
lea edx, [esp + 0xa0]
push 0x1e
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx - 8], 2
mov dword [edx - 4], esi
mov dword [edx + 0x78], 0x10
mov edi, dword [esp + 8]
lea esi, [esp + 0x10]
lea eax, [esp + 0x98]
mov ecx, esi
mov edx, edi
push eax
call fcn.00477de6
pop eax
cmp byte [esi], 4
je 0x4529ed
mov eax, dword [esp + 0x10]
jmp 0x4529e9
push 0x1c
pop esi
mov bx, 0x17
jmp 0x45299c
push 0x10
pop esi
mov bx, 2
lea edx, [esp + 0xa0]
push 0x1e
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx - 8], bx
lea eax, [esp + 0x98]
mov edi, dword [esp + 8]
and word [edx - 6], 0
and dword [edx - 4], 0
mov dword [edx + 0x78], esi
lea esi, [esp + 0x10]
mov ecx, esi
mov edx, edi
push eax
call fcn.00477de6
pop eax
cmp byte [esi], 4
jne 0x4529e1
mov ebx, dword [esp + 0xc]
jmp 0x4529ed
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
cmp al, 4
jne 0x4529f4
mov byte [esp + 0x10], 4
jmp 0x452a00
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
lea esi, [esp + 0x50]
lea edx, [esp + 0x10]
mov ecx, esi
push 0x14
push 0x4ba00b
call fcn.0042c6c0
pop eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x452f54
mov eax, dword [esp + 4]
cmp byte [eax + 0x7c], 0
je 0x452a5e
lea esi, [esp + 0x98]
mov edx, edi
mov ecx, esi
push 1
push 4
call fcn.00477e12
pop eax
pop ecx
cmp byte [esi], 4
je 0x452a5a
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
call fcn.0042b08e
mov eax, dword [esp + 4]
cmp dword [eax + 0x28], 0
je 0x452a9a
lea esi, [esp + 0x98]
mov edx, edi
mov ecx, esi
push dword [eax + 0x2c]
push 0x1001
call fcn.00477e12
pop eax
pop ecx
cmp byte [esi], 4
je 0x452a96
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
call fcn.0042b08e
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 0
je 0x452ad2
lea esi, [esp + 0x98]
mov edx, edi
mov ecx, esi
push dword [eax + 0x34]
push 0x1002
call fcn.00477e12
pop eax
pop ecx
cmp byte [esi], 4
je 0x452ad2
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
call fcn.0042b08e
movsd xmm0, qword [ebx + 0x24]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [ebx + 0x1c]
movsd qword [esp + 0x38], xmm0
mov esi, dword [ebx + 0x2c]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x6c]
mov dword [ebx + 0x34], esi
mov esi, dword [esp + 0x18]
mov dword [ebx + 0x30], esi
mov esi, dword [esp + 0x70]
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], edx
movsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x40]
movsd qword [ebx + 0x4c], xmm0
movsd qword [ebx + 0x54], xmm1
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], edi
lea edi, [ebx + 0x64]
push 0xa
pop ecx
lea esi, [esp + 0x1fc]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x8c], al
lea esi, [ebx + 0x30]
movzx ecx, word [esp + 0x61]
mov word [ebx + 0x8d], cx
mov cl, byte [esp + 0x63]
mov byte [ebx + 0x8f], cl
mov byte [ebx + 0x90], al
lea eax, [ebx + 0x91]
lea ecx, [esp + 0x150]
push 0xa7
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebx + 0x138]
push 0x108
push esi
mov dword [esp + 0x24], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, byte [ebx + 0x198]
mov eax, dword [eax*4 + 0x453044]
add eax, dword [esp + 0x30]
jmp eax
cmp dword [ebx], 0
je 0x452fb2
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
movsd qword [esp + 0x80], xmm1
movsd qword [esp + 0x78], xmm0
jmp 0x452fe4
lea eax, [esp + 0x10]
lea edi, [esp + 0x50]
mov ecx, 0x50c348
xor edx, edx
mov byte [eax], 1
mov dword [edi], eax
push 0x4de9e8
push 0x4de920
push edi
call fcn.004a3000
add esp, 0xc
jmp 0x4526b9
mov ebx, dword [esp + 0x9c]
mov edi, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
jmp 0x452f60
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
push dword [esp + 8]
call dword [sym.imp.ws2_32.dll_closesocket]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x3c], esi
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], edi
mov ebx, eax
mov dword [eax + 0x48], ecx
add eax, 0x3c
mov dword [ebx + 0x38], 0x3b9aca01
push 2
pop esi
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov ecx, ebx
movsd qword [esp + 0x80], xmm1
movsd qword [esp + 0x78], xmm0
call fcn.004531bd
jmp 0x452fe7
lea esi, [esp + 0x150]
push 7
pop edx
mov ecx, esi
push 0x13
push str.Network_unreachabletcp_connect_error
call fcn.0043170a
pop eax
pop ecx
lea ecx, [esp + 0x78]
mov edx, 0x4d8f5b
push dword [esi + 4]
push dword [esi]
push 0x11
call fcn.0042c4a3
add esp, 0xc
push 2
pop esi
mov eax, dword [esp + 0x2c]
movsd xmm0, qword [esp + 0x78]
movsd xmm1, qword [esp + 0x80]
mov dword [eax], esi
movsd qword [eax + 4], xmm0
movsd qword [eax + 0xc], xmm1
mov al, 1
mov byte [ebx + 0x254], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x9c]
mov edi, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
jmp 0x452f72