Function at 0x100fd0d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
push 1
push 0x498
push 0x10021e0
lea ecx, [ebp - 0x48]
call fcn.010148a2
xor edi, edi
cmp dword [ebp + 0x10], 3
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], 0x10032b8
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
je 0x100fd6d
cmp dword [ebp + 0x10], 1
je 0x100fd6d
cmp dword [ebp + 0x10], 5
je 0x100fd6d
mov eax, 0x4a3
mov dword [ebp - 0x48], 0x80070057
mov word [ebp - 0x42], ax
jmp 0x1010008
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x4a3
mov word [ebp - 0x44], ax
lea eax, [ebx + 0x60]
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x58]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x100fe7c
push 0x4c
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x100fea4
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], edi
mov ecx, 0x4b1
mov word [ebp - 0x44], cx
push 0x13
mov edi, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x48], ecx
mov dword [eax], ecx
lea edi, [eax + 4]
add eax, 8
mov dword [edi], ecx
mov dword [eax], ecx
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
call fcn.01017aa3
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x4ba
jl 0x100feb9
mov edx, edi
lea ecx, [ebp - 0x24]
mov word [ebp - 0x44], ax
call fcn.010170b0
mov edx, dword [esi]
lea ecx, [ebp - 0x24]
call fcn.01017aa3
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x4bc
jl 0x100feb9
mov edi, dword [ebp - 8]
mov edx, edi
lea ecx, [ebp - 0x24]
mov word [ebp - 0x44], ax
call fcn.010170b0
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x24]
call fcn.01017aa3
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x4be
jl 0x100feb9
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov word [ebp - 0x44], ax
call fcn.010170b0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100fe5c
mov dword [eax + 0x48], edi
cmp dword [ebp - 4], 0
jne 0x100fe65
mov dword [ebp - 4], edi
mov esi, dword [esi + 0x48]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], edi
xor edi, edi
mov dword [ebp + 8], esi
test esi, esi
jne 0x100fd98
mov eax, dword [ebx + 0xb8]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], edi
cmp eax, edi
je 0x100fec4
push edi
push eax
call esi
cmp eax, 0x102
jne 0x100fec4
mov eax, 0x4da
jmp 0x100ffa0
mov eax, 0x4b1
mov dword [ebp - 0x48], 0x8007000e
mov word [ebp - 0x42], ax
jmp 0x100ffa7
mov word [ebp - 0x42], ax
xor edi, edi
jmp 0x100ffa7
mov eax, dword [ebx + 0xb4]
cmp eax, edi
je 0x100fee3
push edi
push eax
call esi
cmp eax, 0x102
jne 0x100fee3
mov eax, 0x4e1
jmp 0x100ffa0
push 0xc
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xb4], edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
mov eax, 0x4ea
cmp esi, edi
je 0x100fea9
mov word [ebp - 0x44], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], edi
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
mov dword [ebp + 0x10], eax
cmp eax, edi
je 0x100ff2b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
lea edx, [esi + 8]
push edx
push 0x1002db8
push eax
mov dword [ebp - 0x10], eax
call dword [ecx]
mov dword [ebp - 0x48], eax
cmp eax, edi
mov eax, 0x4ee
jl 0x100feb0
push edi
push edi
push esi
push 0x100eda1
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 4]
push edi
push edi
mov dword [ebx + 0xc0], edi
mov dword [ebx + 0xc8], edi
mov dword [ebx + 0xc4], 1
mov dword [ebx + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xb8], eax
cmp eax, edi
jne 0x100ff98
call fcn.01015b6b
mov dword [ebp - 0x48], eax
mov eax, 0x4f7
jmp 0x100feb0
mov eax, 0x4f7
mov dword [ebp - 4], edi
mov dword [ebp - 0x48], edi
mov word [ebp - 0x44], ax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 8], edi
je 0x100ffd7
mov ebx, dword [ebp - 8]
push dword [ebx + 4]
call esi
push dword [ebx]
mov dword [ebx + 4], edi
call esi
push dword [ebx + 8]
mov dword [ebx], edi
call esi
push ebx
mov dword [ebx + 8], edi
call esi
mov ebx, dword [ebp - 0xc]
cmp ebx, edi
je 0x1010002
jmp 0x100ffe9
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x48]
mov dword [ebp - 4], eax
push dword [ebx + 4]
call esi
push dword [ebx]
mov dword [ebx + 4], edi
call esi
push dword [ebx + 8]
mov dword [ebx], edi
call esi
push ebx
mov dword [ebx + 8], edi
call esi
cmp dword [ebp - 4], edi
jne 0x100ffe0
pop ebx
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x24]
call fcn.01016fe9
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x1010020
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x48]
call fcn.01014aa3
pop edi
mov eax, esi
pop esi
leave
ret 0xc