Function at 0x40140f
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
push 0xffffffff
push dword [0x63a3d8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x401465
push 6
call fcn.0052f61d
add esp, 4
mov eax, dword [ebp + 8]
mov dword [0x63a3dc], eax
mov eax, dword [ebp + 0xc]
mov dword [0x63a3e0], eax
mov eax, dword [ebp + 0x10]
mov dword [0x63a3e4], eax
mov dword [ebp - 0x18], esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4014ab
push 6
call fcn.0052f61d
add esp, 4
mov dword [0x63a3e8], eax
cmp dword [0x63a3e8], 0xffffffff
jne 0x40157d
mov dword [ebp - 0x18], esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4014dc
push 6
call fcn.0052f61d
add esp, 4
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x168
call fcn.0052fd90
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x5572e5
push dword [ebp - 0x18]
push 0x5572e8
mov ecx, 3
call fcn.004013b3
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40152b
push ebx
call fcn.0052f617
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x401550
mov eax, 0x557300
push eax
push 3
mov ebx, 0x300
call fcn.0052faa0
add esp, 0x28
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401573
push ebx
call fcn.0052f617
add esp, 4
mov eax, 0xffffffff
jmp 0x40180f
mov dword [ebp - 0x18], esp
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40159c
push 6
call fcn.0052f61d
add esp, 4
mov dword [0x63a3ec], eax
mov dword [ebp - 0x18], esp
push 0x31
push dword [0x63a3ec]
push dword [0x63a3e8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4015d1
push 6
call fcn.0052f61d
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40169e
mov dword [ebp - 0x18], esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4015fd
push 6
call fcn.0052f61d
add esp, 4
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x168
call fcn.0052fd90
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x5572e5
push dword [ebp - 0x18]
push 0x5572e8
mov ecx, 3
call fcn.004013b3
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40164c
push ebx
call fcn.0052f617
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x401671
mov eax, 0x557300
push eax
push 3
mov ebx, 0x300
call fcn.0052faa0
add esp, 0x28
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401694
push ebx
call fcn.0052f617
add esp, 4
mov eax, 0xffffffff
jmp 0x40180f
mov dword [ebp - 0x18], esp
push 4
mov eax, 0x557301
test eax, eax
je 0x4016b2
add eax, 8
push eax
push 8
push 0xffff
push dword [0x63a3e8]
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4016df
push 6
call fcn.0052f61d
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0xc
push 1
mov ebx, 0x1bc
call fcn.00530060
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x401717
push ebx
call fcn.0052f617
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esp
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0xc
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40173b
add eax, 8
push eax
push 0xc
mov eax, 0x55730d
test eax, eax
je 0x40174d
add eax, 8
push eax
push 0x98000004
push dword [0x63a3e8]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x401775
push 6
call fcn.0052f61d
add esp, 4
mov dword [ebp - 8], eax
push VariantCopy
push 0
push 0x401c4f
push 1
mov ebx, 8
mov eax, 0x535210
call fcn.0052fa00
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push dword [ebp - 0x18]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4017e0
push 6
call fcn.0052f61d
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x401805
push 6
call fcn.0052f61d
add esp, 4
mov eax, dword [0x63a3e8]
jmp 0x40180f
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x401820
push ebx
call fcn.0052f617
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc