Function at 0x410a20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x424ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
mov ebx, ecx
lea eax, [ebx + 0x2c]
push edi
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x4c], 0
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
add ebx, 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], esi
lea esp, [esp]
cmp ebx, ebx
mov edi, dword [ebx + 4]
je 0x410a7d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x410c62
cmp esi, dword [ebx + 4]
jne 0x410a90
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x410c4a
lea eax, [edi + 0x94]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.004117a0
xor edx, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov byte [esp + 0x4c], 1
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x38]
cmp ecx, eax
mov dword [esp + 0x3c], edx
je 0x410aec
mov esi, dword [ecx]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x3c]
add esp, 4
cmp esi, eax
mov ecx, esi
jne 0x410ad7
mov ecx, dword [edi + 0x88]
lea ebx, [edi + 0x84]
mov edi, dword [ecx]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], edi
cmp ebx, ebx
mov esi, dword [ebx + 4]
je 0x410b13
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
cmp edi, esi
je 0x410b8e
cmp edi, dword [ebx + 4]
jne 0x410b26
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + 8]
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x410b72
mov edx, dword [ecx + 4]
cmp edx, 3
je 0x410b3e
cmp edx, 4
jne 0x410b72
mov edx, dword [ebp + 8]
cmp dword [ecx + 0x10], edx
jne 0x410b72
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.0040fa40
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00410390
mov dword [edi], esi
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x28]
mov dword [eax], esi
mov eax, dword [esp + 0x38]
cmp edi, dword [ebx + 4]
jne 0x410b81
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov ecx, dword [edi]
mov dword [esp + 0x28], ecx
mov edi, ecx
jmp 0x410b02
mov esi, dword [eax]
cmp esi, eax
je 0x410bc5
mov edx, dword [esp + 0x14]
mov ebx, dword [esi + 8]
lea edi, [esi + 8]
push edx
mov eax, edi
call fcn.00411460
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x3c]
add esp, 4
cmp esi, eax
jne 0x410bc1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov esi, dword [esi]
jmp 0x410b90
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x38]
mov dword [eax + 4], eax
xor edi, edi
cmp ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], edi
je 0x410bf3
lea esp, [esp]
mov esi, dword [ecx]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, dword [esp + 0x38]
mov ecx, esi
jne 0x410be0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x4c], 0
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x38]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x38]
cmp eax, ecx
mov dword [esp + 0x3c], edi
je 0x410c35
mov edi, edi
mov esi, dword [eax]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x3c]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x410c20
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x38], edi
cmp esi, dword [ebx + 4]
jne 0x410c55
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi]
mov dword [esp + 0x30], ecx
mov esi, ecx
jmp 0x410a70
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4