Function at 0x10009967
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x72c
push ebx
push esi
xor ebx, ebx
push edi
push 0x114010c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.10010a45
mov esi, eax
pop ecx
mov dword [esp + 0x24], esi
cmp esi, ebx
jne 0x100099a1
or eax, 0xffffffff
jmp 0x10009cf8
cmp dword [0x1002cf04], 6
jb 0x100099d0
cmp dword [0x1002e330], 3
jne 0x10009a11
mov edi, 0x2d02
call fcn.10012b29
push 0x1002e958
push dword [0x1002eb64]
push eax
push 0x208
jmp 0x100099f4
call fcn.10016c2b
test eax, eax
je 0x10009a11
mov edi, 0x1f5f
call fcn.10012b29
push dword [0x1002eb64]
push 0x1002e958
push eax
push 0x104
mov dword [esp + 0x20], eax
lea eax, [esp + 0x338]
push eax
call fcn.10010bbc
add esp, 0x14
lea eax, [esp + 0x10]
call fcn.10012c69
cmp word [esp + 0x328], bx
je 0x10009a48
xor edi, edi
inc edi
push edi
push ebx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x334]
push eax
call fcn.10015822
add esp, 0x10
test eax, eax
je 0x10009a48
push 0x1388
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x14], ebx
jbe 0x10009a9f
and dword [esp + 0x10], ebx
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x10]
lea eax, [eax + ebx*2]
mov cx, word [eax]
add edi, esi
mov word [edi + 0x114], cx
movzx eax, word [eax]
push eax
call fcn.10011cdb
pop ecx
mov dword [edi + 0x10c], eax
test eax, eax
js 0x10009a7d
inc dword [esi]
or dword [edi + 0x110], 0xffffffff
and dword [edi + 0x118], 0
inc dword [esi + 0x108]
add dword [esp + 0x10], 0x114
inc ebx
cmp ebx, dword [ebp + 0x14]
jb 0x10009a51
push 0x1002d95c
push 0x14
lea edi, [esi + 8]
push 0x32
pop eax
mov ebx, edi
call fcn.10012e96
xor ebx, ebx
pop ecx
pop ecx
cmp dword [esp + 0x18], ebx
jne 0x10009ac8
push 0x1d4c0
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push esi
push 0x100095fe
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x10009aed
mov dword [esp + 0x10], 0xfffffffe
jmp 0x10009c91
mov eax, 0x2285
call fcn.10012bb6
push ebx
push eax
push dword [ebp + 0xc]
mov dword [esp + 0x20], eax
push 0x10020bcc
push dword [ebp + 8]
lea eax, [esp + 0x23c]
push str.https:__
push 0xff
push eax
push 0x10020bc9
call fcn.10013137
add esp, 0x24
lea eax, [esp + 0x14]
call fcn.10012c54
mov eax, 0x1e85
call fcn.10012bb6
push edi
push eax
mov dword [esp + 0x1c], eax
mov edi, 0x1ff
lea eax, [esp + 0x30]
push edi
push eax
call fcn.10010b7c
add esp, 0x10
lea eax, [esp + 0x14]
call fcn.10012c54
mov dword [esp + 0x10], ebx
cmp dword [ebp + 0x14], ebx
jbe 0x10009bd0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esi + 0x114]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], 0
jbe 0x10009b8c
push 0x10020f94
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
push eax
push 0x10020bdc
lea eax, [esp + 0x30]
push eax
call ebx
mov ecx, edi
sub ecx, eax
push ecx
lea eax, [esp + 0x34]
push eax
call ebx
lea eax, [esp + eax + 0x34]
push eax
call fcn.10010b7c
add dword [esp + 0x24], 0x114
add esp, 0x10
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x14]
jb 0x10009b75
xor ebx, ebx
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009bd7
push ebx
lea ecx, [esp + 0x24]
push ecx
sub eax, edx
lea ecx, [esp + 0x24]
push ecx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x23c]
push eax
call fcn.1001284f
add esp, 0x18
test eax, eax
jns 0x10009c1a
push ebx
push dword [esp + 0x1c]
mov dword [esp + 0x18], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10009c91
push 0x100
lea eax, [esp + 0x22c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x200
lea eax, [esp + 0x2c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x88b8
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp edx, ebx
jbe 0x10009c88
lea eax, [esi + 0x114]
mov dword [esp + 0x14], edx
cmp dword [eax + 4], ebx
je 0x10009c79
mov dx, word [eax]
mov edi, dword [ebp + 0x18]
mov word [edi + ecx*2], dx
inc ecx
add eax, 0x114
dec dword [esp + 0x14]
jne 0x10009c69
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x10009c91
mov dword [eax], ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jbe 0x10009cd9
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
add esi, 0x110
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
or edi, 0xffffffff
cmp eax, edi
je 0x10009cc2
push eax
call ebx
mov dword [esi - 4], edi
mov eax, dword [esi]
cmp eax, edi
je 0x10009ccd
push eax
call ebx
mov dword [esi], edi
add esi, 0x114
dec dword [esp + 0x18]
jne 0x10009cb2
mov eax, 0x114010c
lea esi, [esp + 0x24]
call fcn.10010a5b
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x1c]
call fcn.10010a5b
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret