Function at 0x406bb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40ff3c
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], esi
lea ebx, [edi + 0xc]
mov dword [esp + 0x30], vtable.softricity::shared::lock_holder_class_softricity::shared::critical_section_.0
push ebx
mov byte [esp + 0x38], 0
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [ebx + 0x18]
cmp dword [ebx + 0x18], 1
jne 0x406c2b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x1c], eax
mov byte [esp + 0x34], 1
mov dword [esp + 0xd0], 0
add edi, 0x2c
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], edi
push eax
mov ecx, edi
call fcn.00407740
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x406c5c
xor esi, esi
jmp 0x407184
push 0x20
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0xd0], 1
test edi, edi
je 0x406ca2
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 8]
mov dword [edi], vtable.SurrogateClassFactoryImpl.1.0
mov dword [edi + 4], vtable.SurrogateClassFactoryImpl.0
mov dword [edi + 8], 0
movdqu xmm0, xmmword [esi]
mov dword [edi + 0x1c], ecx
movdqu xmmword [edi + 0xc], xmm0
jmp 0x406ca4
xor edi, edi
mov byte [esp + 0xd0], 0
mov dword [esp + 0x14], edi
test edi, edi
je 0x406cba
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov byte [esp + 0xd0], 3
lea eax, [esp + 0x24]
push eax
push 8
push 4
push edi
push esi
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
mov dword [esp + 0x1c], eax
test eax, eax
js 0x406f67
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
add ecx, 0x34
mov byte [eax], 0
lea eax, [esp + 0x24]
push eax
call fcn.004077f0
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea ecx, [esp + 0x74]
call fcn.00408210
add esp, 4
mov byte [esp + 0xd0], 4
mov ecx, dword [esp + 0x28]
push eax
call fcn.00408290
push eax
add eax, 0x10
push eax
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x34]
push eax
call fcn.00408350
mov byte [esp + 0xd0], 3
lea eax, [esp + 0x80]
mov dword [esp + 0x28], eax
mov byte [esp + 0xd0], 3
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x406d5b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push str.ISurrogate_registered_surrogate_class_object_for_CLSID__1___cookie___2_
lea ecx, [esp + 0x8c]
call fcn.004025d0
mov byte [esp + 0xd0], 7
lea ecx, [esp + 0x70]
push str.VCom
call fcn.004025d0
mov byte [esp + 0xd0], 8
call fcn.00403050
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0040b8c0
mov esi, eax
mov byte [esp + 0xd0], 9
lea ecx, [esp + 0x54]
push 0x1c
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
push str.SurrogateImpl::LoadDllServer
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.00403c30
mov byte [esp + 0xd0], 0xa
mov dword [esp + 0x6c], 0x63
mov byte [esp + 0xd0], 0xb
mov ecx, esi
push dword [esp + 0x18]
call fcn.0040ab00
mov esi, eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00408470
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.0040aba0
mov byte [esp + 0xd0], 0xc
lea ecx, [esp + 0x54]
push eax
lea eax, [esp + 0x74]
push eax
push 4
call fcn.0040b940
mov byte [esp + 0xd0], 0xb
cmp dword [esp + 0x50], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x406e57
push dword [esp + 0x3c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
mov byte [esp + 0xd0], 9
cmp dword [esp + 0x68], 0x10
jb 0x406e86
push dword [esp + 0x54]
call esi
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
mov byte [esp + 0xd0], 8
mov dword [esp + 0xa0], vtable.AppV::LogFormatter.0
mov byte [esp + 0xd0], 8
cmp dword [esp + 0xbc], 8
jb 0x406ecc
push dword [esp + 0xa8]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
mov word [esp + 0xa8], ax
mov byte [esp + 0xd0], 7
cmp dword [esp + 0x84], 8
jb 0x406f07
push dword [esp + 0x70]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
mov byte [esp + 0xd0], 3
cmp dword [esp + 0x9c], 8
jb 0x406f42
push dword [esp + 0x88]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], 0
mov word [esp + 0x88], ax
jmp 0x40716e
push str.ISurrogate_failed_to_register_surrogate_class_object_for_CLSID__1___CoRegisterClassObject_returned:__2_
lea ecx, [esp + 0x74]
call fcn.004025d0
mov byte [esp + 0xd0], 0xf
lea ecx, [esp + 0x88]
push str.VCom
call fcn.004025d0
mov byte [esp + 0xd0], 0x10
call fcn.00403050
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0040b8c0
mov esi, eax
mov byte [esp + 0xd0], 0x11
lea ecx, [esp + 0x54]
push 0x1c
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
push str.SurrogateImpl::LoadDllServer
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.00403c30
mov byte [esp + 0xd0], 0x12
mov dword [esp + 0x6c], 0x6a
mov byte [esp + 0xd0], 0x13
mov ecx, esi
push dword [esp + 0x18]
call fcn.0040ab00
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00404960
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.0040aba0
mov byte [esp + 0xd0], 0x14
lea ecx, [esp + 0x54]
push eax
lea eax, [esp + 0x8c]
push eax
push 1
call fcn.0040b940
mov byte [esp + 0xd0], 0x13
cmp dword [esp + 0x50], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x407063
push dword [esp + 0x3c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
mov byte [esp + 0xd0], 0x11
cmp dword [esp + 0x68], 0x10
jb 0x407092
push dword [esp + 0x54]
call esi
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
mov byte [esp + 0xd0], 0x10
mov dword [esp + 0xa0], vtable.AppV::LogFormatter.0
mov byte [esp + 0xd0], 0x10
cmp dword [esp + 0xbc], 8
jb 0x4070d8
push dword [esp + 0xa8]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
mov word [esp + 0xa8], ax
mov byte [esp + 0xd0], 0xf
cmp dword [esp + 0x9c], 8
jb 0x407116
push dword [esp + 0x88]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], 0
mov word [esp + 0x88], ax
mov byte [esp + 0xd0], 3
cmp dword [esp + 0x84], 8
jb 0x407151
push dword [esp + 0x70]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
mov esi, dword [esp + 0x1c]
mov byte [esp + 0xd0], 0
test edi, edi
je 0x407184
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov dword [esp + 0xd0], 0xffffffff
dec dword [ebx + 0x18]
mov dword [esp + 0x30], vtable.softricity::shared::lock_holder_class_softricity::shared::critical_section_.0
jne 0x4071a3
mov dword [ebx + 0x1c], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x34], 0
mov eax, esi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0040e8d2
mov esp, ebp
pop ebp
ret 8