Function at 0x1003fd40
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x1016cd79
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
lea ecx, [ebp + 0x28]
push 0xffffff
mov byte [ebp + 0x24], bl
call fcn.10015fb0
cmp dword [ebp + 0x1c], ebx
je 0x1003fda6
mov al, byte [ebp + 0x25]
test al, al
jne 0x1003fd99
mov ecx, dword [ebp + 0x1c]
push 1
push ecx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp + 0x1c], ebx
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
lea edi, [ebp + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
cmp edi, ebx
mov ecx, dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov dword [esp + 0x58], ecx
je 0x1003fdc8
cmp edi, eax
je 0x1003fdcd
call fcn.10149775
cmp esi, dword [esp + 0x58]
je 0x1003fef8
cmp edi, ebx
jne 0x1003fde0
call fcn.10149775
cmp esi, dword [edi + 4]
jne 0x1003fdea
call fcn.10149775
cmp dword [esi + 0x20], ebx
je 0x1003fee2
push 0xf
push str.255.255.255.255
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.10001fe0
cmp esi, dword [edi + 4]
mov dword [esp + 0xec], ebx
jne 0x1003fe24
call fcn.10149775
lea edx, [esp + 0x1c]
lea eax, [esi + 0xc]
push edx
push eax
lea ecx, [esp + 0x9c]
call fcn.1003aeb0
push eax
lea eax, [esp + 0xdc]
push eax
lea ecx, [ebp + 4]
mov byte [esp + 0xf4], 1
call fcn.1003ba30
mov esi, 0x10
cmp dword [esp + 0xc8], esi
jb 0x1003fe70
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.10149646
add esp, 4
cmp dword [esp + 0xac], esi
mov edi, 0xf
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
jb 0x1003fea3
mov edx, dword [esp + 0x98]
push edx
call fcn.10149646
add esp, 4
cmp dword [esp + 0x34], esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
mov dword [esp + 0xec], 0xffffffff
jb 0x1003fed6
mov eax, dword [esp + 0x20]
push eax
call fcn.10149646
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x14]
call fcn.10085870
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x1003fdb6
mov edi, dword [esp + 0xf4]
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x1003ff10
call fcn.10149775
lea esp, [esp]
mov edi, dword [edi + 8]
mov ecx, dword [esp + 0xf4]
cmp dword [ecx + 4], edi
jbe 0x1003ff24
call fcn.10149775
cmp esi, edi
je 0x1004004c
mov edx, dword [esp + 0xf4]
cmp esi, dword [edx + 8]
jb 0x1003ff3d
call fcn.10149775
cmp dword [esi + 0x14], ebx
je 0x1004002c
push 0xf
push str.255.255.255.255
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.10001fe0
mov eax, dword [esp + 0xf4]
cmp esi, dword [eax + 8]
mov dword [esp + 0xec], 2
jb 0x1003ff82
call fcn.10149775
lea ecx, [esp + 0x38]
push ecx
push esi
lea ecx, [esp + 0x64]
call fcn.1003aeb0
push eax
lea edx, [esp + 0xd0]
push edx
lea ecx, [ebp + 4]
mov byte [esp + 0xf4], 3
call fcn.1003ba30
mov edi, 0x10
cmp dword [esp + 0x90], edi
jb 0x1003ffc5
mov eax, dword [esp + 0x7c]
push eax
call fcn.10149646
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x1003ffee
mov ecx, dword [esp + 0x60]
push ecx
call fcn.10149646
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov dword [esp + 0xec], 0xffffffff
jb 0x1004001c
mov edx, dword [esp + 0x3c]
push edx
call fcn.10149646
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0xf4]
cmp esi, dword [eax + 8]
jb 0x1004003d
call fcn.10149775
mov edi, dword [esp + 0xf4]
add esi, 0x1c
jmp 0x1003ff10
cmp dword [ebp + 0x1c], ebx
jne 0x1004008e
lea esi, [ebp + 0x30]
mov byte [ebp + 0x24], 1
mov byte [ebp + 0x25], bl
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [ebp + 0x4c]
push ecx
mov byte [ebp + 0x28], bl
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea edx, [ebp + 0x20]
push edx
push ebx
push ebp
push 0x1003f3f0
push ebx
push ebx
call fcn.1014a9cb
add esp, 0x18
mov dword [ebp + 0x1c], eax
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret 4