Function at 0x100fced
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.01014882
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 0x100fd4d
cmp dword [ebp + 0x10], 1
je 0x100fd4d
cmp dword [ebp + 0x10], 5
je 0x100fd4d
mov eax, 0x4a3
mov dword [ebp - 0x48], 0x80070057
mov word [ebp - 0x42], ax
jmp 0x100ffe8
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 0x100fe5c
push 0x4c
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x100fe84
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.01017a83
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x4ba
jl 0x100fe99
mov edx, edi
lea ecx, [ebp - 0x24]
mov word [ebp - 0x44], ax
call fcn.01017090
mov edx, dword [esi]
lea ecx, [ebp - 0x24]
call fcn.01017a83
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x4bc
jl 0x100fe99
mov edi, dword [ebp - 8]
mov edx, edi
lea ecx, [ebp - 0x24]
mov word [ebp - 0x44], ax
call fcn.01017090
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x24]
call fcn.01017a83
mov dword [ebp - 0x48], eax
test eax, eax
mov eax, 0x4be
jl 0x100fe99
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov word [ebp - 0x44], ax
call fcn.01017090
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100fe3c
mov dword [eax + 0x48], edi
cmp dword [ebp - 4], 0
jne 0x100fe45
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 0x100fd78
mov eax, dword [ebx + 0xb8]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], edi
cmp eax, edi
je 0x100fea4
push edi
push eax
call esi
cmp eax, 0x102
jne 0x100fea4
mov eax, 0x4da
jmp 0x100ff80
mov eax, 0x4b1
mov dword [ebp - 0x48], 0x8007000e
mov word [ebp - 0x42], ax
jmp 0x100ff87
mov word [ebp - 0x42], ax
xor edi, edi
jmp 0x100ff87
mov eax, dword [ebx + 0xb4]
cmp eax, edi
je 0x100fec3
push edi
push eax
call esi
cmp eax, 0x102
jne 0x100fec3
mov eax, 0x4e1
jmp 0x100ff80
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 0x100fe89
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 0x100ff0b
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 0x100fe90
push edi
push edi
push esi
push 0x100ed81
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 0x100ff78
call fcn.01015b4b
mov dword [ebp - 0x48], eax
mov eax, 0x4f7
jmp 0x100fe90
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 0x100ffb7
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 0x100ffe2
jmp 0x100ffc9
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 0x100ffc0
pop ebx
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x24]
call fcn.01016fc9
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x1010000
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x48]
call fcn.01014a83
pop edi
mov eax, esi
pop esi
leave
ret 0xc