Function at 0x407c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426f1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
push 0xffffffffffffffff
mov dword [esp + 0x74], 2
mov dword [esi + 0x64], 0
call fcn.0041ff20
add esi, 0x30
lea edi, [esi + 0x14]
lea ebx, [esi + 4]
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0xc]
mov eax, ebx
mov dword [esp + 0x34], edx
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x28]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x28], edx
call fcn.0040c0e0
mov ecx, ebx
mov ebp, eax
mov edx, dword [ecx]
mov dword [esp + 0x38], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x3c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], eax
call fcn.0040c0e0
mov edx, edi
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x3c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x40], eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x28]
mov dword [esp + 0x44], ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.0040c0e0
cmp dword [esp + 0x10], eax
jae 0x407df0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
mov edx, ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [edx]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], ecx
mov ecx, dword [edx + 8]
cmp ecx, eax
mov dword [esp + 0x60], ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x64], edx
je 0x407ddc
lea ecx, [esp + 0x38]
call fcn.0040d2e0
mov edi, dword [eax + 8]
lea ecx, [esp + 0x48]
call fcn.0040d2e0
mov eax, dword [eax + 8]
push edi
mov ecx, eax
call fcn.0040d210
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x407db0
test ebp, ebp
jbe 0x407e69
mov ecx, esi
call fcn.0040a260
dec ebp
jne 0x407de4
jmp 0x407e69
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 8], edx
mov edx, dword [edi]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [edi + 8]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x5c]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x88]
push ecx
call fcn.0040d070
add esp, 0x34
test ebp, ebp
jbe 0x407e69
mov ecx, esi
call fcn.0040be70
dec ebp
jne 0x407e5f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407e9b
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x58], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x48]
mov dword [esp + 0x64], ecx
push eax
push edx
lea ecx, [esp + 0x60]
call fcn.0040c070
mov eax, dword [esi + 0x2c]
mov byte [esp + 0x70], 1
test eax, eax
je 0x407f6f
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 0x10]
mov dword [esi + 0xc], eax
call fcn.00408020
mov ecx, dword [esi + 0x2c]
dec ecx
mov eax, ecx
mov dword [esi + 0x2c], ecx
test eax, eax
je 0x407ed4
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp ecx, eax
jne 0x407f64
mov eax, dword [esi + 0x10]
lea edx, [eax + 4]
mov dword [esi + 0x10], edx
mov eax, dword [eax]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x2c]
add esp, 4
test eax, eax
jne 0x407f35
lea ecx, [esp + 0x58]
call fcn.00421820
mov ecx, dword [esp + 0x5c]
lea eax, [esi + 4]
mov edx, dword [esp + 0x60]
mov ebx, eax
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x64]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
lea ebx, [esi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x24]
push eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x407f64
mov eax, dword [esi + 0x10]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040d040
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
lea ecx, [esi + 4]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x50]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x407eab
mov esi, dword [esp + 0x14]
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x42936c
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov ecx, esi
mov dword [esi + 0x10], 0x42935c
mov dword [esp + 0x70], 0xffffffff
call fcn.0041fed0
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret