Function at 0x10007ec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101fea5b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1044501c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
push edx
call eax
cmp dword [esi + 0xc], 0
jne 0x10007fc2
push 0x20
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], 0
test edi, edi
je 0x10007f2c
push edi
call fcn.101e92b0
mov eax, edi
jmp 0x10007f2e
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x38], 0xffffffff
mov dword [esi + 0xc], eax
mov ecx, dword [0x104450ec]
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], ecx
call fcn.101f1dc0
mov dword [esp + 0x38], 1
mov edx, dword [0x104450ec]
mov eax, ebx
lea edi, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.101f1d20
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov ecx, edi
mov byte [esp + 0x38], 2
mov edx, dword [esi + 0xc]
push ecx
push edx
lea ebx, [esp + 0x28]
call fcn.101e85f0
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x10007faa
push esi
call edi
test eax, eax
jg 0x10007faa
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x14]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x100080bf
push esi
call edi
jmp 0x100080b2
mov eax, dword [0x104450ec]
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.101f1dc0
mov ecx, ebx
mov ebx, dword [esi + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.1000b940
mov ebx, dword [esp + 0x14]
mov edi, dword [eax]
mov eax, dword [eax + 4]
add ebx, 0xfffffff4
cmp dword [ebx], 0xfffffffe
mov dword [esp + 0x1c], eax
je 0x10008010
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008010
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esi + 0xc]
mov ebx, dword [eax + 0x18]
mov eax, dword [eax]
test edi, edi
je 0x10008020
cmp edi, eax
je 0x10008026
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x1c], ebx
jne 0x100080bf
mov ecx, dword [0x104450ec]
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], ecx
call fcn.101f1dc0
mov dword [esp + 0x38], 3
mov edx, dword [0x104450ec]
mov eax, ebx
lea edi, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.101f1d20
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov ecx, edi
mov byte [esp + 0x38], 4
mov edx, dword [esi + 0xc]
push ecx
push edx
lea ebx, [esp + 0x28]
call fcn.101e85f0
mov esi, dword [esp + 0x18]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x1000809f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1000809f
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x14]
add esi, 0xfffffff4
cmp dword [esi], 0xfffffffe
je 0x100080bf
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100080bf
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8