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

Disassembly:
push 0xffffffffffffffff
push 0x44ce08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call fcn.0043df98
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.004048d0
mov eax, dword [edi + 4]
mov edx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call dword [edx]
call fcn.0043df98
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
mov byte [esp + 0x30], 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebx
jg 0x40bf60
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
add ebp, 0xfffffff0
call dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
test edx, edx
lea ecx, [ebp + 0xc]
jl 0x40c06b
cmp eax, dword [ebp]
jne 0x40c06b
mov eax, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40c09e
mov eax, dword [esp + 0x10]
mov edi, edi
test ebx, ebx
jl 0x40c061
cmp ebx, dword [eax - 0xc]
jg 0x40c061
movsx eax, byte [ebx + eax]
test eax, eax
jge 0x40bf7e
add eax, 0x100
push 2
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.0040baf0
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x3c], 3
call fcn.0040a350
add esp, 0xc
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
mov byte [esp + 0x30], 4
je 0x40c005
mov edx, dword [esi + 0xc]
test edx, edx
lea ebp, [esi + 0xc]
jl 0x40bff3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bff3
push eax
call fcn.00403a40
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x40bfe6
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea ebp, [ebx + 0x10]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
jmp 0x40c005
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404530
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c04b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
mov dword [esp + 0x18], ebx
jl 0x40bf5a
jmp 0x40bf28
push 0x80070057
call fcn.004013c0
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x40c080
call fcn.00401c00
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x38]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c0c4
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c0e7
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 0x40c10d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8