Function at 0x412ae0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x934
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x930], eax
mov eax, dword [esp + 0x948]
mov ecx, dword [esp + 0x950]
push ebp
push edi
mov edi, dword [esp + 0x944]
push 0x3e8
push 2
push 6
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
call fcn.00403050
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
mov dword [esp + 0xc], ebp
jne 0x412b4b
pop edi
mov eax, 0x3f
pop ebp
mov ecx, dword [esp + 0x930]
xor ecx, esp
call fcn.0052bfb9
add esp, 0x934
ret
push ebx
push esi
push 4
lea edx, [esp + 0x14]
push edx
push 0x20
push 0xffff
push ebp
mov dword [0x5efb6c], ebp
mov dword [esp + 0x24], 1
call fcn.004030c0
xor ebx, ebx
add esp, 0x14
cmp dword [0x5efb68], ebx
je 0x412c35
push 0x814328
call fcn.00414940
push 0xe
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x412bb7
mov ecx, dword [0x5efb6c]
push ebx
call fcn.00412430
add esp, 4
push ebp
call sub.WS2_32.dll_closesocket
lea eax, [ebx + 0x40]
jmp 0x412f9b
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esi + 0xc], ax
mov word [esi], 6
movzx eax, word [0x5efb60]
push eax
call fcn.00403180
mov word [esi + 0xc], ax
or eax, 0xffffffff
mov dword [esi + 2], ebx
push esi
mov dword [esi + 6], eax
push 0x814328
mov word [esi + 0xa], ax
call fcn.00414950
mov ecx, dword [0x814328]
push ecx
mov dword [0x814330], 0x814328
call fcn.00414910
add esp, 0x10
test eax, eax
je 0x412c2f
mov ecx, dword [0x5efb6c]
push ebx
call fcn.00412430
add esp, 4
push ebp
call sub.WS2_32.dll_closesocket
mov eax, 0x41
jmp 0x412f9b
mov dword [0x5efb68], ebx
push ebx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
add esp, 4
cmp edx, ebx
jg 0x412c50
jl 0x412de1
cmp eax, ebx
jb 0x412de1
push ebx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
add esp, 4
push ebx
push 0x2000
push edx
push eax
call fcn.0055a160
push 0x3e8
lea edx, [esp + 0x164]
push ebx
push edx
mov dword [esp + 0x160], eax
mov dword [esp + 0x168], 0xffffffff
mov dword [esp + 0x15c], 0x2c6
mov dword [esp + 0x164], ebx
call sub.VCRUNTIME140.dll_memset
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x412ca5
sub eax, edx
add eax, 1
cmp eax, 0x3e8
ja 0x412ccc
push eax
lea eax, [esp + 0x164]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [0x814328]
push eax
xor ebp, ebp
mov edi, eax
call fcn.00414910
add esp, 4
test eax, eax
jne 0x412dac
push edi
call fcn.00414920
add esp, 4
cmp eax, ebx
je 0x412de1
mov ecx, dword [0x5efb6c]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_connect
mov eax, dword [0x5efb6c]
push ebx
push 0x1a0
lea edx, [esp + 0x158]
push edx
push eax
call sub.WS2_32.dll_send
cmp eax, 0x1a0
jne 0x412d2b
add ebp, 1
jmp 0x412d8f
push 0x10
mov dword [esp + 0x14], 0xe
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x412deb
mov word [esi], 6
movzx ecx, word [0x5efb60]
push ecx
call fcn.00403180
add esp, 4
lea edx, [esp + 0x10]
push edx
mov word [esi + 0xc], ax
mov eax, dword [0x5efb6c]
push esi
push eax
mov dword [esp + 0x1c], 0x10
call sub.WS2_32.dll_getsockname
test eax, eax
push esi
jne 0x412e0e
push 0x81432c
call fcn.00414950
add esp, 8
push edi
call fcn.00414930
mov edi, eax
push edi
call fcn.00414910
add esp, 8
test eax, eax
je 0x412ce6
cmp ebp, ebx
jne 0x412e2a
mov ecx, dword [0x5efb6c]
push 4
lea eax, [esp + 0x1c]
push eax
push 0x20
push 0xffff
push ecx
mov dword [esp + 0x2c], ebx
call fcn.004030c0
mov edx, dword [esp + 0x28]
add esp, 0x14
push edx
call sub.WS2_32.dll_closesocket
mov eax, 0x3e
jmp 0x412f9b
mov eax, 0x4a
jmp 0x412f9b
mov ecx, dword [0x5efb6c]
push ebx
call fcn.00412430
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call sub.WS2_32.dll_closesocket
mov eax, 1
jmp 0x412f9b
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call sub.WS2_32.dll_closesocket
mov eax, 1
jmp 0x412f9b
push ebx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov edi, dword [esp + 0x960]
mov esi, dword [esp + 0x958]
mov ebp, eax
add esp, 4
add ebp, dword [esp + 0x950]
mov dword [esp + 0x10], ebp
mov edi, edi
push ebx
mov dword [esp + 0x28], ebx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov ecx, ebp
add esp, 4
sub ecx, eax
mov dword [esp + 0x20], ecx
jns 0x412e6b
mov dword [esp + 0x20], ebx
mov eax, dword [0x5efb6c]
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], eax
push ecx
add eax, 1
push eax
mov dword [esp + 0x40], 1
call fcn.00403080
add esp, 0x14
cmp eax, 0xffffffff
je 0x412f37
cmp eax, ebx
je 0x412f80
mov eax, dword [0x5efb6c]
push ebx
push 0x3f8
lea edx, [esp + 0x550]
push edx
push eax
mov dword [esp + 0x2c], 0xe
call sub.WS2_32.dll_recv
cmp eax, 0x3f8
jne 0x412e50
mov eax, dword [0x5efb6c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x144]
push edx
push eax
mov dword [esp + 0x28], 0x10
call sub.WS2_32.dll_getpeername
lea ecx, [esp + 0x130]
push ecx
call fcn.004029a0
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
push edi
push esi
push eax
lea edx, [esp + 0x568]
push edx
mov ecx, ebp
call fcn.00412120
add esp, 0x14
cmp esi, 4
jne 0x412f23
cmp word [ebp + 0x40], 0
ja 0x412f7e
cmp eax, 0x40
je 0x412f6d
test eax, eax
je 0x412f7e
mov ebp, dword [esp + 0x10]
xor ebx, ebx
jmp 0x412e50
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x412e50
mov ecx, dword [0x5efb6c]
push ebx
call fcn.00412430
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call sub.WS2_32.dll_closesocket
mov edx, dword [esp + 0x18]
xor eax, eax
cmp dword [edx], ebx
setle al
jmp 0x412f9b
mov eax, dword [esp + 0x14]
push eax
call sub.WS2_32.dll_closesocket
mov eax, 0x40
jmp 0x412f9b
xor ebx, ebx
mov ecx, dword [0x5efb6c]
push ebx
call fcn.00412430
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call sub.WS2_32.dll_closesocket
xor eax, eax
mov ecx, dword [esp + 0x940]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.0052bfb9
add esp, 0x934
ret