Function at 0x1002246b
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
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], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 8
call fcn.10038d18
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push ebx
push 0x18
call fcn.10038d18
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1003f22b
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 4
rep stosd dword es:[edi], eax
add ebx, 4
push ebx
push 0x18
call fcn.10038d18
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1003f233
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 4
rep stosd dword es:[edi], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
cmp dword [0x10043e49], 0
jne 0x1002254b
mov eax, 0
jmp 0x10022f45
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10022f76
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x1002256f
mov eax, 0
jmp 0x10022f45
fild dword [ebp + 8]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fsub qword [0x1003f219]
ftst
fnstsw ax
test ah, 1
je 0x10022589
fchs
fcomp qword [0x1003f221]
fnstsw ax
test ah, 0x41
je 0x100226ae
mov dword [ebp - 0x38], esp
push 1
push 0
push 0
push 0x11
push 2
push 2
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x100225e1
push 0x141
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], esp
push 1
push 0
push 0
push 0x11
push 2
push 0x17
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x1002262b
push 0x194
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x10022646
cmp dword [ebp - 0x10], 0
je 0x10022646
xor eax, eax
jmp 0x1002264b
mov eax, 1
test eax, eax
je 0x10022675
push dword [ebp - 0xc]
call fcn.1001a61c
push dword [ebp - 0x10]
call fcn.1001a61c
push dword [ebp - 4]
call fcn.1002329c
mov eax, 0
jmp 0x10022f45
push 1
push dword [ebp - 0x10]
call fcn.100233a9
push 3
push dword [ebp - 0x10]
call fcn.1002343c
push 1
push dword [ebp - 0x10]
call fcn.100234dd
push 1
push dword [ebp - 0x10]
call fcn.1002368c
jmp 0x10022712
mov dword [ebp - 0x38], esp
push 1
push 0
push 0
push 0x11
push 2
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x100226f3
push 0x373
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10022712
push dword [ebp - 4]
call fcn.1002329c
mov eax, 0
jmp 0x10022f45
push 1
push dword [ebp - 0xc]
call fcn.100233a9
push 1
push dword [ebp - 0xc]
call fcn.1002343c
push 1
push dword [ebp - 0xc]
call fcn.100234dd
push 1
push dword [ebp - 0xc]
call fcn.1002368c
mov dword [ebp - 0x38], esp
push 0
push 0
push 4
xor eax, eax
call dword [0x10043f25]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x1002277e
push 0x4fd
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100227ad
push dword [ebp - 0xc]
call fcn.1001a61c
push dword [ebp - 0x10]
call fcn.1001a61c
push dword [ebp - 4]
call fcn.1002329c
mov eax, 0
jmp 0x10022f45
mov dword [ebp - 0x38], esp
push 0xb0
push 8
push dword [ebp - 0x14]
xor eax, eax
call dword [0x10043f05]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x100227e3
push 0x5e7
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1002283e
push dword [ebp - 0xc]
call fcn.1001a61c
push dword [ebp - 0x10]
call fcn.1001a61c
push dword [ebp - 4]
call fcn.1002329c
mov dword [ebp - 0x38], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [0x10043f6d]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022834
push 0x694
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov eax, 0
jmp 0x10022f45
push 0xb0
push dword [ebp - 0x18]
call fcn.1000164a
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.100018c8
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x18]
call fcn.1000328c
push dword [ebp - 0xc]
push 4
push dword [ebp - 0x18]
call fcn.1000328c
push dword [ebp - 0x10]
push 0xa0
push dword [ebp - 0x18]
call fcn.1000328c
push 0
push 0x2c
push dword [ebp - 0x18]
call fcn.1000328c
push dword [ebp + 8]
push 8
push dword [ebp - 0x18]
call fcn.10007b0a
mov dword [ebp - 0x38], esp
push dword [ebp + 0x10]
xor eax, eax
call dword [sym.imp.WS2_32.dll_htons]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x100228d4
push 0x806
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
push eax
push 0xa
push dword [ebp - 0x18]
call fcn.10007b0a
fild dword [ebp + 8]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fsub qword [0x1003f219]
ftst
fnstsw ax
test ah, 1
je 0x100228fc
fchs
fcomp qword [0x1003f221]
fnstsw ax
test ah, 0x41
je 0x100229c7
push 1
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.1002372d
test eax, eax
je 0x10022986
push dword [ebp - 0xc]
call fcn.10018041
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x10022947
push dword [ebp - 0x1c]
call fcn.100183c0
mov dword [ebp - 0x1c], eax
push 1
push dword [ebp - 0x1c]
push 1
mov eax, str.0:0:0:0:0:0:0:0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x10]
call fcn.10023974
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x10022975
push ebx
call fcn.10038d1e
add esp, 4
cmp dword [ebp - 0x3c], 0
je 0x10022986
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x38], esp
mov ebx, dword [ebp + 0xc]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_inet_addr]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x100229b4
push 0x9fd
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
push eax
push 0xc
push dword [ebp - 0x18]
call fcn.1000328c
jmp 0x10022aa2
cmp dword [ebp + 8], 2
jne 0x10022a27
push 1
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.1002372d
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], esp
mov ebx, dword [ebp + 0xc]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_inet_addr]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022a14
push 0xae0
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
push eax
push 0xc
push dword [ebp - 0x18]
call fcn.1000328c
jmp 0x10022aa2
push 1
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.10023974
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call fcn.10001708
fild dword [ebp - 0x18]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x1003f263]
fstp qword [ebp - 0x44]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], esp
push 0x10
mov ebx, dword [ebp - 0x48]
mov ebx, dword [ebx]
call fcn.100010de
push ebx
fld qword [ebp - 0x44]
call fcn.100010b7
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x10022aa2
push 0xb71
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
cmp dword [ebp - 0x20], 0
jne 0x10022afa
push dword [ebp - 0xc]
call fcn.1001a61c
push dword [ebp - 0x10]
call fcn.1001a61c
push dword [ebp - 4]
call fcn.1002329c
mov dword [ebp - 0x38], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [0x10043f6d]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022af0
push 0xc48
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov eax, 0
jmp 0x10022f45
push 0x400
call fcn.10010650
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10022b67
push dword [ebp - 0x2c]
call fcn.1001a432
push dword [ebp - 0xc]
call fcn.1001a61c
push dword [ebp - 0x10]
call fcn.1001a61c
push dword [ebp - 4]
call fcn.1002329c
mov dword [ebp - 0x38], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [0x10043f6d]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022b5d
push 0xd59
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov eax, 0
jmp 0x10022f45
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x18]
call fcn.1000328c
push dword [ebp - 0xc]
push 4
push dword [ebp - 0x18]
call fcn.1000328c
push 0
push 0x24
push dword [ebp - 0x18]
call fcn.1000328c
push 0
push 0x28
push dword [ebp - 0x18]
call fcn.1000328c
push 0
push 0x30
push dword [ebp - 0x18]
call fcn.1000328c
push dword [ebp - 0x28]
push 0x34
push dword [ebp - 0x18]
call fcn.1000328c
push 0
push 0x38
push dword [ebp - 0x18]
call fcn.1000328c
push dword [ebp + 0x14]
push 0x3c
push dword [ebp - 0x18]
call fcn.1000328c
mov eax, dword [ebp + 0x18]
xor ecx, ecx
push eax
lea eax, [ebp - 0x30]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10022f3a
mov dword [ebp - 0x38], esp
mov eax, 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp - 4]
push 0x100244cf
push 0x32
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022c55
push 0xf03
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0xf
push dword [ebp - 0x34]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022c89
push 0xf47
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x38], esp
push dword [ebp - 0x34]
xor eax, eax
call dword [0x10043f35]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022cb5
push 0xf6a
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
fild dword [ebp - 0x18]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x1003f26b]
fstp qword [ebp - 0x44]
mov dword [ebp - 0x48], esp
fld qword [ebp - 0x44]
call fcn.100010b7
push eax
xor eax, eax
call dword [0x10043f75]
nop
nop
cmp dword [ebp - 0x48], esp
je 0x10022cf9
push 0xf96
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x38], esp
push 5
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022d27
push 0xfb6
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x38], esp
mov eax, 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp - 4]
push 0x10024700
push 0x32
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022d73
push 0xfeb
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0xf
push dword [ebp - 0x34]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022da7
push 0x102f
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x38], esp
push dword [ebp - 0x34]
xor eax, eax
call dword [0x10043f35]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022dd3
push 0x1052
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
fild dword [ebp - 0x18]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x1003f293]
fstp qword [ebp - 0x44]
mov dword [ebp - 0x48], esp
fld qword [ebp - 0x44]
call fcn.100010b7
push eax
xor eax, eax
call dword [0x10043f75]
nop
nop
cmp dword [ebp - 0x48], esp
je 0x10022e17
push 0x107e
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
fild dword [ebp + 8]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fsub qword [0x1003f219]
ftst
fnstsw ax
test ah, 1
je 0x10022e31
fchs
fcomp qword [0x1003f221]
fnstsw ax
test ah, 0x41
je 0x10022f32
mov dword [ebp - 0x38], esp
mov eax, 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp - 4]
push 0x100248e7
push 0x32
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022e8e
push 0x1101
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0xf
push dword [ebp - 0x34]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022ec2
push 0x1145
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x38], esp
push dword [ebp - 0x34]
xor eax, eax
call dword [0x10043f35]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10022eee
push 0x1168
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
fild dword [ebp - 0x18]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x1003f293]
fstp qword [ebp - 0x44]
mov dword [ebp - 0x48], esp
fld qword [ebp - 0x44]
call fcn.100010b7
push eax
xor eax, eax
call dword [0x10043f75]
nop
nop
cmp dword [ebp - 0x48], esp
je 0x10022f32
push 0x1194
push 0x402384d
push 6
call fcn.10038d0c
add esp, 0xc
pop eax
pop ebx
pop ecx
jmp 0x10022bfb
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10022f45
push eax
mov ebx, dword [ebp - 0x24]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.10038d1e
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.10038d1e
add esp, 4
pop ebx
call fcn.10038d1e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14