Function at 0x10007b40
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
movzx ecx, word [eax]
push edi
push 0
push 0
push 0
push 6
push 1
push ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x10007b93
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push 0
push 0
push 0
push 0
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x10007b9c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x30], ecx
push 1
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x10007b8c
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor esi, esi
push 0
call ebx
mov byte [esp + esi + 0x34], al
inc esi
cmp esi, 0x14
jb 0x10007bd8
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
xor esi, esi
mov dword [esp + 0x44], eax
cmp eax, esi
je 0x10007b8c
mov edx, dword [0x100131f0]
push 0x1000
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x20], eax
cmp eax, esi
je 0x10007b8c
push 0xbb8
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
push edi
lea edi, [esp + 0x18]
lea ebx, [esp + 0x14]
lea eax, [esp + 0x24]
lea esi, [esp + 0x3c]
mov dword [esp + 0x24], 0x1000
call fcn.10007810
add esp, 8
cmp eax, 0xffffffff
jne 0x10007c7b
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esp + 0x20]
mov eax, dword [0x100131f0]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
xor ebx, ebx
push ecx
push edx
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.10003430
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push esi
call fcn.10004630
add esp, 4
test eax, eax
jne 0x10007d21
jmp 0x10007cb9
xor ebx, ebx
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
push 0x3e8
push ecx
lea edi, [esp + 0x18]
lea ebx, [esp + 0x14]
lea eax, [esp + 0x24]
lea esi, [esp + 0x3c]
call fcn.10007810
add esp, 8
cmp eax, 0xffffffff
je 0x10007d1b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10007d06
mov edx, dword [esp + 0x20]
push eax
push edx
lea esi, [esp + 0x2c]
call fcn.10003430
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
call fcn.10004630
add esp, 4
test eax, eax
je 0x10007cb7
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [0x100131f0]
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [0x100131f0]
push esi
push 8
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [ebp + 8]
mov ecx, eax
mov dword [edi + 0x10], ecx
cmp ecx, ebx
jne 0x10007d78
lea eax, [esp + 0x24]
call fcn.10003410
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x24]
mov eax, esi
call fcn.10002ca0
lea eax, [esp + 0x24]
mov dword [edi + 0x14], esi
call fcn.10003410
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret