Function at 0x102fdae
Capabilities:
Create thread

Disassembly:
mov eax, 0x1036e5d
call fcn.01027f98
sub esp, 0x10c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0x10101d0
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x58], esp
push 0
push 0x400000
push 0xb1
mov ebx, 0x100fdb0
push ebx
mov esi, 0x100fd28
push esi
call fcn.01011ab4
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.01011b28
mov dword [ebp - 4], 1
push 0x100d744
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 0x10300e2
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 0x102fe40
mov dword [edi + 0x1c], 1
mov ecx, dword [edi + 0x40]
cmp ecx, dword [edi + 0x44]
jae 0x10300ff
cmp dword [edi + 0x1c], 1
jne 0x10300ff
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 0x100fce0
push 1
push 0
push 0x100fcd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x34], eax
test eax, eax
jge 0x102ff21
push 1
push 0
mov edi, 0x400000
push edi
push 0xd6
push ebx
push esi
lea ecx, [ebp - 0xd8]
call fcn.01011ab4
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.010127ba
mov byte [ebp - 4], 4
push 0x1778
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 3
call fcn.0101236e
add esp, 0x4c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call fcn.01011afc
push dword [ebp - 0x34]
push 0x1010178
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.01011ab4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.01011cf6
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 0x100274c
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 0x102ff97
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 0x1030050
push 1
push 0
push 0x400000
push 0xf5
push ebx
push esi
lea ecx, [ebp - 0x118]
call fcn.01011ab4
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.010127ba
mov byte [ebp - 4], 7
push 0x1778
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 6
call fcn.0101236e
add esp, 0x4c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.01011afc
push dword [ebp - 0x34]
push 0x1010178
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.01011ab4
mov byte [ebp - 4], 8
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.01011cf6
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 0x102fd9e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
test eax, eax
jne 0x10300d2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x103008c
call edi
jmp 0x1030098
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], eax
push 0x101015c
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0
push 0x400000
push 0x107
push ebx
push esi
call fcn.01011ab4
mov byte [ebp - 4], 9
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.01029a1b
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.01011bd1
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 0x103c6a4
lea eax, [ebp - 0x6c]
push eax
jmp 0x103012b
call sub.msvcrt.dll__CxxThrowException
int3