Function at 0x40cae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x444988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x20]
push edi
lea ebp, [eax + 0x16]
push 0
push ebp
lea ecx, [esp + 0x18]
call fcn.0040be90
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x20]
mov edx, dword [0x4581e4]
mov dword [ecx], edx
mov cx, word [ebx + 8]
mov edx, dword [esp + 0x14]
mov word [edx + 4], cx
mov cx, word [ebx + 0xa]
mov edx, dword [esp + 0x14]
mov word [edx + 6], cx
mov cx, word [ebx + 0xc]
mov edx, dword [esp + 0x14]
mov word [edx + 8], cx
mov cx, word [ebx + 0xe]
mov edx, dword [esp + 0x14]
mov word [edx + 0xa], cx
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov word [ecx + 0x14], ax
mov edi, dword [esp + 0x14]
mov esi, dword [ebx + 0x1c]
movzx ecx, ax
mov edx, ecx
shr ecx, 2
add edi, 0x16
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x2c]
push ebp
push eax
mov dword [esp + 0x30], 0
call fcn.0040ea00
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040bec0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
push esi
mov esi, ecx
mov al, byte [esi + 0x3c]
test al, al
jne 0x40d01d
mov ecx, dword [esi + 0x2c]
call fcn.0040deb0
test eax, eax
jne 0x40cee3
mov ecx, dword [esi + 0x2c]
call fcn.0040e250
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx]
push 2
push 0
push 0
call dword [edx + 0x28]
mov ax, word [esi + 0x48]
mov ecx, dword [esi + 0x2c]
push ebx
push edi
mov word [esi + 0xe], ax
mov dword [esi + 0x10], 0
xor bl, bl
call fcn.0040deb0
test eax, eax
je 0x40cf79
mov ecx, dword [esi + 0x2c]
call fcn.0040ded0
test eax, eax
jne 0x40cf79
mov ecx, dword [esi + 0x2c]
push ebp
call fcn.0040dee0
push 1
mov ecx, esi
mov ebp, eax
call fcn.0040c390
movzx ecx, word [esi + 0xe]
shl ecx, 4
mov edx, 0xfffffffc
sub edx, ecx
mov edi, eax
add edi, edx
cmp ebp, edi
pop ebp
jb 0x40cf79
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 0x44]
test eax, eax
jne 0x40cf57
call fcn.0040df10
cmp eax, edi
jb 0x40cf57
push 1
mov ecx, esi
call fcn.0040c3e0
jmp 0x40cf77
mov ecx, dword [esi + 0x2c]
call fcn.0040e250
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x48]
push 0
mov ecx, esi
call fcn.0040c3e0
test al, al
je 0x40cf79
mov bl, 1
mov ecx, esi
call fcn.0040c2b0
mov ecx, dword [esi + 0x2c]
call fcn.0040ded0
mov ecx, esi
mov word [esi + 8], ax
call 0x40cae0
test bl, bl
mov edi, eax
je 0x40cfae
mov ecx, dword [esi + 0x2c]
call fcn.0040ded0
test eax, eax
je 0x40cfae
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0040c870
mov ecx, dword [esi + 0x2c]
call fcn.0040ded0
movzx ecx, word [esi + 8]
cmp ecx, eax
je 0x40d01b
mov ecx, dword [esi + 0x2c]
call fcn.0040ded0
xor ebx, ebx
cmp word [esi + 0xe], bx
mov word [esi + 8], ax
je 0x40cfd8
mov word [esi + 0xc], bx
jmp 0x40cfdf
mov word [esi + 0xa], ax
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 0x2c]
cmp eax, edi
jb 0x40cff8
sub eax, edi
pop edi
mov dword [ecx + 0x2c], eax
pop ebx
mov ecx, esi
pop esi
jmp 0x40cae0
call fcn.0040e250
mov eax, dword [esi + 0x2c]
sub dword [eax + 0x44], edi
mov edx, dword [esi + 0x2c]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
call dword [eax + 0x28]
pop edi
pop ebx
mov ecx, esi
pop esi
jmp 0x40cae0
pop edi
pop ebx
pop esi
ret