Function at 0x1002cfa9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, str.sjdz
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10023e41
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1002cfe3
push ebx
call fcn.100704d4
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1002cff3
push ebx
call fcn.100704d4
add esp, 4
lea eax, [ebp - 0xc]
push eax
call fcn.100243ee
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1002d00f
push ebx
call fcn.100704d4
add esp, 4
push htons
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1002d022
mov eax, 0x1008929b
push eax
push 1
mov ebx, 0x168
call fcn.100711b0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1002d048
push ebx
call fcn.100704d4
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1002d05b
mov eax, 0x10089266
push eax
push 1
mov ebx, 0x9dc
call fcn.10071de0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1002d081
push ebx
call fcn.100704d4
add esp, 4
mov eax, dword [ebp - 0x18]
cdq
mov dword [0x1012db63], eax
mov dword [0x1012db67], edx
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, str.jzdz
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10023e41
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1002d0c1
push ebx
call fcn.100704d4
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1002d0d1
push ebx
call fcn.100704d4
add esp, 4
lea eax, [ebp - 0xc]
push eax
call fcn.100243ee
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1002d0ed
push ebx
call fcn.100704d4
add esp, 4
push htons
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1002d100
mov eax, 0x1008929b
push eax
push 1
mov ebx, 0x168
call fcn.100711b0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1002d126
push ebx
call fcn.100704d4
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1002d139
mov eax, 0x10089266
push eax
push 1
mov ebx, 0x9dc
call fcn.10071de0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1002d15f
push ebx
call fcn.100704d4
add esp, 4
mov eax, dword [ebp - 0x18]
cdq
mov dword [0x1012db6b], eax
mov dword [0x1012db6f], edx
inc dword [0x1012db73]
mov ebx, dword [0x1012da9b]
add ebx, 0xe4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x1002d1b1
mov ebx, dword [0x1012da9b]
add ebx, 0xe0
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x1002d1b1
mov eax, 1
jmp 0x1002d1b6
mov eax, 0
test eax, eax
je 0x1002d224
push reloc.WS2_32.dll_getsockname
push 0
push 0x10041ef1
push 1
mov ebx, 0x9dc
call fcn.10071de0
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push 0
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x1002d224
push 0x28c
push 0x4010833
push 6
call fcn.100704da
add esp, 0xc
call fcn.1002d44e
call fcn.1002fa76
mov ebx, dword [0x1012da9b]
add ebx, 0x2c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x1002d24b
call fcn.10036d15
mov dword [0x1012db77], 0
mov dword [0x1012db7b], 1
push dword [0x1012da83]
call fcn.10026307
call fcn.100378a5
mov dword [ebp - 4], esp
push dword [0x1012da83]
xor eax, eax
call dword [0x1012e10f]
nop
nop
cmp dword [ebp - 4], esp
je 0x1002d29e
push 0x40a
push 0x4010833
push 6
call fcn.100704da
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002d2b0
jmp 0x1002d2f3
mov dword [ebp - 4], esp
push 0
push dword [0x1012dabb]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindowAsync]
nop
nop
cmp dword [ebp - 4], esp
je 0x1002d2e4
push 0x443
push 0x4010833
push 6
call fcn.100704da
add esp, 0xc
call fcn.10024546
push 0
call fcn.100704f2
add esp, 4
cmp dword [0x1012db73], 0x5a
jne 0x1002d427
mov dword [0x1012db73], 0
push 1
push 1
push 1
push 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call fcn.1003a46c
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1002d33d
push ebx
call fcn.100704d4
add esp, 4
cmp dword [ebp - 8], 0
jne 0x1002d356
call fcn.1001ad6d
push 0
call fcn.100704f2
add esp, 4
push reloc.WS2_32.dll_getsockname
push 0
push 0x10042a90
push 1
mov ebx, 0x9dc
call fcn.10071de0
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push 0
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x1002d3bc
push 0x5e2
push 0x4010833
push 6
call fcn.100704da
add esp, 0xc
call fcn.10018fbc
push reloc.WS2_32.dll_getsockname
push 0
push 0x10042dd3
push 1
mov ebx, 0x9dc
call fcn.10071de0
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push 0
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x1002d427
push 0x660
push 0x4010833
push 6
call fcn.100704da
add esp, 0xc
push 0x80000301
push 0
push 0x7d0
push 1
mov ebx, 0x67c
call fcn.10071130
add esp, 0x10
jmp 0x1002d16e