Function at 0x1002d023
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.10023ebb
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1002d05d
push ebx
call fcn.100707a2
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1002d06d
push ebx
call fcn.100707a2
add esp, 4
lea eax, [ebp - 0xc]
push eax
call fcn.10024468
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1002d089
push ebx
call fcn.100707a2
add esp, 4
push getsockname
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1002d09c
mov eax, 0x10089277
push eax
push 1
mov ebx, 0x168
call fcn.10071230
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1002d0c2
push ebx
call fcn.100707a2
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1002d0d5
mov eax, 0x1008924f
push eax
push 1
mov ebx, 0x9dc
call fcn.10072010
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1002d0fb
push ebx
call fcn.100707a2
add esp, 4
mov eax, dword [ebp - 0x18]
cdq
mov dword [0x1012db83], eax
mov dword [0x1012db87], 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.10023ebb
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1002d13b
push ebx
call fcn.100707a2
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1002d14b
push ebx
call fcn.100707a2
add esp, 4
lea eax, [ebp - 0xc]
push eax
call fcn.10024468
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1002d167
push ebx
call fcn.100707a2
add esp, 4
push getsockname
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1002d17a
mov eax, 0x10089277
push eax
push 1
mov ebx, 0x168
call fcn.10071230
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1002d1a0
push ebx
call fcn.100707a2
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1002d1b3
mov eax, 0x1008924f
push eax
push 1
mov ebx, 0x9dc
call fcn.10072010
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1002d1d9
push ebx
call fcn.100707a2
add esp, 4
mov eax, dword [ebp - 0x18]
cdq
mov dword [0x1012db8b], eax
mov dword [0x1012db8f], edx
inc dword [0x1012db93]
mov ebx, dword [0x1012dabb]
add ebx, 0xe4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x1002d22b
mov ebx, dword [0x1012dabb]
add ebx, 0xe0
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x1002d22b
mov eax, 1
jmp 0x1002d230
mov eax, 0
test eax, eax
je 0x1002d29e
push reloc.WS2_32.dll_getsockname
push 0
push 0x1004245b
push 1
mov ebx, 0x9dc
call fcn.10072010
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 0x1002d29e
push 0x28c
push 0x4010833
push 6
call fcn.100707a8
add esp, 0xc
call fcn.1002d4c8
call fcn.1002ffe0
mov ebx, dword [0x1012dabb]
add ebx, 0x2c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x1002d2c5
call fcn.1003727f
mov dword [0x1012db97], 0
mov dword [0x1012db9b], 1
push dword [0x1012daa3]
call fcn.10026381
call fcn.10037e0f
mov dword [ebp - 4], esp
push dword [0x1012daa3]
xor eax, eax
call dword [0x1012e133]
nop
nop
cmp dword [ebp - 4], esp
je 0x1002d318
push 0x40a
push 0x4010833
push 6
call fcn.100707a8
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1002d32a
jmp 0x1002d36d
mov dword [ebp - 4], esp
push 0
push dword [0x1012dadb]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindowAsync]
nop
nop
cmp dword [ebp - 4], esp
je 0x1002d35e
push 0x443
push 0x4010833
push 6
call fcn.100707a8
add esp, 0xc
call fcn.100245c0
push 0
call fcn.100707c0
add esp, 4
cmp dword [0x1012db93], 0x5a
jne 0x1002d4a1
mov dword [0x1012db93], 0
push 1
push 1
push 1
push 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call fcn.1003a9d6
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1002d3b7
push ebx
call fcn.100707a2
add esp, 4
cmp dword [ebp - 8], 0
jne 0x1002d3d0
call fcn.1001abeb
push 0
call fcn.100707c0
add esp, 4
push reloc.WS2_32.dll_getsockname
push 0
push 0x10042ffa
push 1
mov ebx, 0x9dc
call fcn.10072010
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 0x1002d436
push 0x5e2
push 0x4010833
push 6
call fcn.100707a8
add esp, 0xc
call fcn.10018e3a
push reloc.WS2_32.dll_getsockname
push 0
push 0x1004333d
push 1
mov ebx, 0x9dc
call fcn.10072010
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 0x1002d4a1
push 0x660
push 0x4010833
push 6
call fcn.100707a8
add esp, 0xc
push 0x80000301
push 0
push 0x7d0
push 1
mov ebx, 0x67c
call fcn.10072e40
add esp, 0x10
jmp 0x1002d1e8