Function at 0x404260
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4216d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x30], 1
call fcn.004175ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x30], 2
call fcn.004175ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov bl, 3
mov esi, esp
push eax
mov byte [esp + 0x38], bl
mov dword [esp + 0x28], eax
call fcn.004019a0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00403d70
mov esi, eax
push 0x422a74
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00401f20
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call fcn.00401fe0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404328
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x40]
push 0
push 0x42249c
call fcn.00401580
cmp esi, 0xffffffff
je 0x4043dc
imul esi, esi, 0x1c
mov eax, dword [esi + ebp + 0x30]
test eax, eax
lea ebx, [esi + ebp]
mov esi, dword [ebx + 0x28]
mov dword [esp + 0x18], 0
jle 0x4043dc
mov edi, edi
test esi, esi
je 0x4043ae
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x18]
call fcn.00401fe0
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [esp + 0x14]
je 0x40439a
mov ecx, dword [edi - 0xc]
test ecx, ecx
jl 0x40439a
push eax
push edi
call fcn.004083f0
add esp, 8
test eax, eax
je 0x40439a
sub eax, edi
mov dword [esp + 0x24], eax
je 0x4043b3
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x30]
mov esi, dword [esi]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x404360
jmp 0x4043dc
call fcn.00416463
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x4c], esp
mov esi, esp
push eax
call fcn.004019a0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00403bd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4043ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov byte [esp + 0x30], 1
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40441e
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40443e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404464
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc