Function at 0x102fd6e
Capabilities:
Create thread

Disassembly:
mov eax, 0x1036e1d
call fcn.01027f58
sub esp, 0x10c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0x1010198
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x58], esp
push 0
push 0x400000
push 0xb1
mov ebx, 0x100fd74
push ebx
mov esi, 0x100fcf0
push esi
call fcn.01011a74
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.01011ae8
mov dword [ebp - 4], 1
push 0x100d694
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__]
pop ecx
pop ecx
test al, al
jne 0x10300a2
lea eax, [edi + 4]
mov dword [ebp - 0x3c], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
cmp dword [edi + 0x1c], 0
jne 0x102fe00
mov dword [edi + 0x1c], 1
mov ecx, dword [edi + 0x40]
cmp ecx, dword [edi + 0x44]
jae 0x10300bf
cmp dword [edi + 0x1c], 1
jne 0x10300bf
mov eax, ecx
imul eax, eax, 0xcc
add eax, dword [edi + 0x48]
mov dword [ebp - 0x38], eax
inc ecx
mov dword [edi + 0x40], ecx
mov dword [eax], edi
add eax, 8
push eax
push 0x100fca8
push 1
push 0
push 0x100fc98
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x34], eax
test eax, eax
jge 0x102fee1
push 1
push 0
mov edi, 0x400000
push edi
push 0xd6
push ebx
push esi
lea ecx, [ebp - 0xd8]
call fcn.01011a74
mov byte [ebp - 4], 3
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.0101277a
mov byte [ebp - 4], 4
push 0x1778
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 3
call fcn.0101232e
add esp, 0x4c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call fcn.01011abc
push dword [ebp - 0x34]
push 0x1010140
push dword [ebp - 0x34]
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0
push edi
push 0xd9
push ebx
push esi
call fcn.01011a74
mov byte [ebp - 4], 5
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.01011cb6
add esp, 0x50
push 0xb
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x98], 1
mov edi, dword [ebp - 0x38]
lea eax, [edi + 0x28]
push 0xa0
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x30
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x40]
push 0x100273c
lea eax, [edi + 0x28]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [edi + eax*2 + 0x28]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0x5c
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x102ff57
add dword [ebp - 0x18], 2
mov eax, dword [edi + 8]
mov edx, dword [eax]
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [edi + 0x28]
push ecx
push dword [ebp - 0x18]
push eax
call dword [edx + 0x2c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x34], eax
test eax, eax
jge 0x1030010
push 1
push 0
push 0x400000
push 0xf5
push ebx
push esi
lea ecx, [ebp - 0x118]
call fcn.01011a74
mov byte [ebp - 4], 6
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x5c], esp
push dword [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.0101277a
mov byte [ebp - 4], 7
push 0x1778
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 6
call fcn.0101232e
add esp, 0x4c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.01011abc
push dword [ebp - 0x34]
push 0x1010140
push dword [ebp - 0x34]
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0
push 0x400000
push 0xf8
push ebx
push esi
call fcn.01011a74
mov byte [ebp - 4], 8
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.01011cb6
add esp, 0x50
mov dword [edi + 0x24], 1
push dword [ebp + 8]
lea ecx, [edi + 0x10]
call dword [0x1001188]
xor eax, eax
push eax
push eax
push edi
push 0x102fd5e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
test eax, eax
jne 0x1030092
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x103004c
call edi
jmp 0x1030058
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], eax
push 0x1010124
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0
push 0x400000
push 0x107
push ebx
push esi
call fcn.01011a74
mov byte [ebp - 4], 9
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.010299db
add esp, 0x48
mov dword [ebp - 4], 1
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.01011b91
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebp - 0x6c]
call dword [sym.imp.msvcrt.dll_public:_void___thiscall_exception::constructor_void_]
push 0x103c664
lea eax, [ebp - 0x6c]
push eax
jmp 0x10300eb
call sub.msvcrt.dll__CxxThrowException
int3