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

Disassembly:
push 0xffffffffffffffff
push 0x465818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
call fcn.00441a77
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], 0
call fcn.00441a77
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x38]
mov ecx, esi
mov byte [esp + 0x30], 1
mov bl, 0x20
call fcn.00401ff0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
jg 0x4025a8
mov ebx, dword [esi]
lea eax, [edi - 0x10]
sub ebx, 0x10
cmp eax, ebx
mov dword [esp + 0x38], eax
je 0x4026d9
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jl 0x4026c9
mov ecx, dword [eax]
cmp ecx, dword [ebx]
jne 0x4026c9
push eax
call fcn.004019b0
mov edi, eax
add esp, 4
or edx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40259a
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
add edi, 0x10
mov dword [esi], edi
jmp 0x4026d5
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x4026bf
mov esi, dword [esi]
cmp eax, dword [esi - 0xc]
jg 0x4026bf
cmp bl, 0x20
mov cl, byte [esi + eax]
mov byte [esp + 0x14], cl
je 0x4025d0
cmp bl, 0x5c
jne 0x402661
mov edx, dword [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x28]
call fcn.00401ed0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.004021e0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402612
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, esi
or eax, ecx
jge 0x40263a
push esi
lea ecx, [esp + 0x14]
call fcn.00401960
mov ebp, dword [esp + 0x10]
push ebp
call fcn.004247dc
add esp, 4
test esi, esi
jl 0x4026bf
cmp esi, dword [ebp - 8]
jg 0x4026bf
mov dword [ebp - 0xc], esi
mov byte [esi + ebp], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4026bf
mov al, byte [ebp]
mov byte [esp + 0x14], al
mov eax, dword [edi - 4]
mov ebx, dword [edi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
jge 0x402688
push esi
lea ecx, [esp + 0x20]
call fcn.00401960
mov edi, dword [esp + 0x1c]
test esi, esi
mov al, byte [esp + 0x14]
mov byte [ebx + edi], al
jl 0x4026bf
cmp esi, dword [edi - 8]
jg 0x4026bf
mov ecx, dword [esp + 0x24]
mov bl, al
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
mov esi, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jl 0x4025a4
jmp 0x40254f
push 0x80070057
call fcn.00401500
mov eax, dword [edi - 0xc]
push eax
push edi
mov ecx, esi
call fcn.00401e30
mov eax, dword [esp + 0x38]
add ebp, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026fd
mov ecx, dword [ebp]
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40271c
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
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret