Function at 0x4104c0
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42292e
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42c050]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x42c050]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
push 0x18
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, esi
je 0x4107f3
mov dword [eax], eax
mov dword [esp + 0x18], eax
mov dword [eax + 4], eax
mov dword [esp + 0x78], esi
test byte [0x430f18], 1
jne 0x41054a
or dword [0x430f18], 1
mov byte [esp + 0x78], 1
call fcn.00402740
push 0x423420
call fcn.0041d6db
add esp, 4
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], cx
mov byte [esp + 0x78], 2
cmp byte [ebx + 8], cl
je 0x4105b1
xor edx, edx
lea ebx, [esp + 0x18]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], dx
call fcn.0040f4b0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0041d5b4
mov esp, ebp
pop ebp
ret
test byte [0x430ea8], 1
jne 0x4105d3
or dword [0x430ea8], 1
call fcn.00411560
push 0x423380
call fcn.0041d6db
add esp, 4
mov ecx, dword [0x430eb0]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x430eb0]
mov edi, dword [0x430ef8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x410603
mov esi, 0x601
jmp 0x4107a3
lea eax, [esp + 0x3c]
push eax
call fcn.004100f0
test al, al
jne 0x41061b
mov esi, 0x1014
jmp 0x4107a3
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x41062a
lea eax, [esp + 0x3c]
push esi
push eax
xor cl, cl
mov edx, str.BA8D164350B649CC861D2C01BED14BE8
call fcn.004124d0
add esp, 8
cmp eax, esi
je 0x41065f
cmp eax, 0x108
je 0x41065f
push 0xc0000004
push 1
call fcn.0040fe10
add esp, 8
mov esi, 0x1015
jmp 0x4107a3
call fcn.0040bf90
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
cmp eax, esi
je 0x410684
cmp eax, 0x720
je 0x410684
mov esi, 0x601
jmp 0x4107a3
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.0040a660
cmp dword [eax + 0x20], 2
jne 0x410727
lea ebx, [esp + 0x18]
lea edx, [esp + 0x3c]
mov ecx, 0x430f1c
call fcn.004037f0
test eax, eax
je 0x4106bf
mov ebx, dword [esp + 0x14]
mov esi, 0x1015
jmp 0x4107a3
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
cmp esi, eax
je 0x410777
lea ecx, [ecx]
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x24]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x70]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x74]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 8]
push eax
push ecx
push str.BA8D164350B649CC861D2C01BED14BE8
mov ecx, edi
call edx
test eax, eax
je 0x410777
mov esi, dword [esi]
cmp esi, dword [esp + 0x18]
jne 0x4106d0
mov ebx, dword [esp + 0x14]
xor esi, esi
jmp 0x41075d
mov ecx, dword [esp + 0x58]
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x24]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x74]
push esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x7c]
push esi
push ebx
mov dword [eax + 0xc], ecx
push str.BA8D164350B649CC861D2C01BED14BE8
mov ecx, edi
call edx
cmp eax, esi
je 0x41077d
push 0xc0000004
push 1
mov esi, 0x1015
call fcn.0040fe10
add esp, 8
jmp 0x4107a3
mov ebx, dword [esp + 0x14]
xor esi, esi
push esi
push esi
push esi
push 0x40fe50
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 4], eax
cmp eax, esi
jne 0x4107a3
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
push ebx
mov ecx, edi
mov esi, 0x601
call edx
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
test esi, esi
sete al
cmp dword [esp + 0x50], 8
mov byte [ebx + 8], al
jb 0x4107c2
mov ecx, dword [esp + 0x3c]
push ecx
call edi
add esp, 4
xor edx, edx
lea ebx, [esp + 0x18]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], dx
call fcn.0040f4b0
mov eax, dword [esp + 0x18]
push eax
call edi
add esp, 4
mov eax, esi
jmp 0x410593
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x42733c
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3