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

Disassembly:
push 0xffffffffffffffff
push 0x43d7c9
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
xor edi, edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], edi
call fcn.00402750
mov dword [esp + 0x30], 1
call fcn.004336c7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x30], 2
mov dword [esp + 0x18], edi
mov eax, dword [ebp + 0x9c]
test eax, eax
je 0x408a44
mov ecx, dword [ebp + 0xa0]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jge 0x408b20
mov esi, dword [ebp + 0x9c]
call fcn.004336c7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [edi + esi + 0xc]
lea ecx, [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 3
call fcn.004030e0
test eax, eax
je 0x408af1
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x408af1
call fcn.004336c7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [edi + esi]
push eax
lea ecx, [esp + 0x20]
push 0x440048
push ecx
mov byte [esp + 0x3c], 4
call fcn.00402c10
mov esi, dword [esp + 0x28]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00407b60
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408aed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
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 0x408b14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc dword [esp + 0x18]
add edi, 0x28
jmp 0x408a21
mov cl, byte [ebx]
xor esi, esi
test cl, cl
mov eax, ebx
je 0x408b85
lea ebx, [ebx]
cmp cl, 0x3b
jne 0x408b3d
test esi, esi
jne 0x408b3f
mov esi, eax
jmp 0x408b3f
xor esi, esi
push eax
call fcn.00420f20
mov cl, byte [eax]
add esp, 4
test cl, cl
jne 0x408b30
test esi, esi
je 0x408b85
mov ebp, dword [ebx - 4]
mov eax, dword [ebx - 8]
sub esi, ebx
mov ecx, 1
sub ecx, ebp
sub eax, esi
or eax, ecx
jge 0x408b75
push esi
lea ecx, [esp + 0x14]
call fcn.00401510
mov ebx, dword [esp + 0x10]
test esi, esi
jl 0x408bac
cmp esi, dword [ebx - 8]
jg 0x408bac
mov dword [ebx - 0xc], esi
mov byte [esi + ebx], 0
mov ecx, dword [ebx - 0x10]
mov eax, dword [ecx]
lea ebp, [ebx - 0x10]
call dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
test edx, edx
lea ecx, [ebp + 0xc]
jl 0x408bb6
cmp eax, dword [ebp]
jne 0x408bb6
mov eax, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x408be9
push 0x80070057
call fcn.00401260
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x408bcb
call fcn.00401340
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 dword [esp + 0x24], 1
mov byte [esp + 0x30], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408c17
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 0
call fcn.004033e0
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 4