Function at 0x407240
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410004
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], vtable.softricity::shared::lock_holder_class_softricity::shared::critical_section_.0
mov byte [esp + 0x28], 0
lea ebx, [edi + 0xc]
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [ebx + 0x18]
cmp dword [ebx + 0x18], 1
jne 0x4072b4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x1c], eax
mov byte [esp + 0x28], 1
mov dword [esp + 0xd8], 0
mov esi, dword [edi + 0x34]
mov dword [esp + 0x14], esi
cmp esi, dword [edi + 0x38]
je 0x407646
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
lea ebx, [ebx]
push dword [esi]
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x5c]
push 0x45
xor eax, eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
push str.ISurrogate_revoked_surrogate_class_object__cookie___2___result___1_
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
call fcn.00403580
mov byte [esp + 0xd8], 1
xor eax, eax
xor ecx, ecx
mov word [esp + 0x74], ax
cmp word [str.VCom], cx
mov eax, 4
mov dword [esp + 0x84], 0
cmove eax, ecx
mov dword [esp + 0x88], 0
push eax
push str.VCom
lea ecx, [esp + 0x7c]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
call fcn.00403580
mov byte [esp + 0xd8], 2
call fcn.00403050
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0040b8c0
mov ebx, eax
mov byte [esp + 0xd8], 3
lea ecx, [esp + 0x8c]
push 0x1c
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
push str.SurrogateImpl::FreeSurrogate
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.00403c30
mov byte [esp + 0xd8], 4
mov dword [esp + 0xa4], 0x85
mov byte [esp + 0xd8], 5
mov ecx, dword [ebx + 4]
push ecx
lea eax, [ecx + 1]
mov ecx, ebx
mov dword [ebx + 4], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040ac20
mov byte [esp + 0xd8], 6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40744a
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x3c]
push 0
push eax
call fcn.00404d90
add esp, 8
mov byte [esp + 0xd8], 5
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], 0
test eax, eax
je 0x407474
mov esi, dword [eax]
push eax
call edi
add esp, 4
mov eax, esi
test esi, esi
jne 0x407462
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
push ecx
lea eax, [ecx + 1]
mov ecx, ebx
mov dword [ebx + 4], eax
lea eax, [esp + 0x20]
push eax
call fcn.0040ac20
mov byte [esp + 0xd8], 7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4074b1
push 0
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
call fcn.00408890
add esp, 8
mov byte [esp + 0xd8], 5
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x4074de
lea esp, [esp]
mov esi, dword [eax]
push eax
call edi
add esp, 4
mov eax, esi
test esi, esi
jne 0x4074d0
lea eax, [esp + 0x44]
mov ecx, ebx
push eax
call fcn.0040aba0
mov byte [esp + 0xd8], 8
lea ecx, [esp + 0x8c]
push eax
lea eax, [esp + 0x78]
push eax
push 4
call fcn.0040b940
mov byte [esp + 0xd8], 5
cmp dword [esp + 0x58], 8
jb 0x40751e
push dword [esp + 0x44]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
mov byte [esp + 0xd8], 3
cmp dword [esp + 0xa0], 0x10
jb 0x407553
push dword [esp + 0x8c]
call edi
add esp, 4
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
mov byte [esp + 0xd8], 2
mov dword [esp + 0xa8], vtable.AppV::LogFormatter.0
mov byte [esp + 0xd8], 2
cmp dword [esp + 0xc4], 8
jb 0x4075a2
push dword [esp + 0xb0]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], ax
mov byte [esp + 0xd8], 1
cmp dword [esp + 0x88], 8
jb 0x4075dd
push dword [esp + 0x74]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
mov byte [esp + 0xd8], al
cmp dword [esp + 0x70], 8
jb 0x407611
push dword [esp + 0x5c]
call edi
add esp, 4
mov esi, dword [esp + 0x14]
xor eax, eax
mov word [esp + 0x5c], ax
add esi, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov dword [esp + 0x14], esi
cmp esi, dword [eax + 0x38]
jne 0x4072e0
mov ebx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [edi + 0x34]
lea ecx, [edi + 0x2c]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x2c]
push dword [eax + 4]
call fcn.004079b0
mov eax, dword [edi + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x2c]
mov dword [eax], eax
mov eax, dword [edi + 0x2c]
mov dword [eax + 8], eax
mov dword [edi + 0x30], 0
mov eax, dword [edi + 8]
mov byte [eax], 1
mov dword [esp + 0xd8], 0xffffffff
dec dword [ebx + 0x18]
mov dword [esp + 0x24], vtable.softricity::shared::lock_holder_class_softricity::shared::critical_section_.0
jne 0x407697
mov dword [ebx + 0x1c], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x28], 0
xor eax, eax
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0040e8d2
mov esp, ebp
pop ebp
ret 4