Function at 0x408210
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x44bc60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
call fcn.0043cff4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 0x1c8]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x1cc]
cmp ecx, eax
mov dword [esp + 0x14], ecx
je 0x4083f7
mov esi, dword [ecx]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
sub esi, 0x10
mov dword [esp + 0x28], esp
mov ebp, esp
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x408296
cmp eax, dword [esi]
jne 0x408296
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4082c8
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x40842c
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 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 ecx, dword [esp + 0x1c]
add eax, 0x10
mov dword [ebp], eax
lea eax, [esp + 0x20]
push eax
call fcn.00407e70
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
mov byte [esp + 0x30], 1
je 0x408337
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x408325
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x408325
push eax
call fcn.004015f0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40831c
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea ebx, [ebp + 0x10]
mov dword [esp + 0x10], ebx
jmp 0x408337
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401ac0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
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 0x40835a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x44e773
push ebx
call fcn.0042ba80
add esp, 8
test eax, eax
je 0x4083da
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
lea esi, [ebx - 0x10]
mov dword [esp + 0x2c], esp
mov ebp, esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x40839e
cmp eax, dword [esi]
jne 0x40839e
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4083cc
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x40842c
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 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]
add eax, 0x10
mov dword [ebp], eax
call fcn.0041eb70
add esp, 8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x1cc]
add ecx, 4
cmp ecx, edx
mov dword [esp + 0x14], ecx
jne 0x408267
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408419
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
jmp fcn.00401070