Function at 0x409900
Capabilities:
Access peb ldr_data
Check os version
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x52a0eb
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59c6b8]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 0xd
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x90], eax
lea ebx, [esi + 0x20]
lea ebp, [esi + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
xor edi, edi
mov dword [esi], eax
mov dword [esi + 0xa4], 1
mov ecx, dword [eax + 0x20]
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0xa0], edi
mov edx, dword [ecx + 0x20]
lea eax, [esp + 0x18]
push eax
mov eax, dword [ecx + 0x1c]
push edx
push eax
call fcn.00478400
cmp dword [esp + 0x14], 7
lea ecx, [esp + 0x14]
je 0x4099c4
call fcn.0044ea40
push eax
push str.Catalog_object_is_wrong_type__0:s_
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
call fcn.00412330
add esp, 0x14
jmp 0x4099d0
push ecx
mov ecx, esi
call fcn.00409200
test eax, eax
jne 0x4099f1
lea ecx, [esp + 0x14]
call fcn.0044ea50
mov dword [ebx], 5
mov dword [ebp], 5
mov dword [esi + 0xa4], edi
jmp 0x409bb0
mov ecx, dword [esp + 0x1c]
push edi
push ebx
push str.Dests
call fcn.00412200
mov ecx, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x28]
push edx
push str.Names
call fcn.00412200
cmp dword [eax], 7
jne 0x409a2c
mov ecx, dword [esp + 0x2c]
push edi
push ebp
push str.Dests
call fcn.00412200
jmp 0x409a33
mov dword [ebp], 5
lea ecx, [esp + 0x24]
call fcn.0044ea50
mov ecx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x28]
push eax
push 0x5331f8
call fcn.00412200
cmp dword [eax], 7
jne 0x409a83
push edi
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x34]
push str.Base
call fcn.00412200
cmp dword [eax], 3
jne 0x409a7a
mov ecx, dword [esp + 0x3c]
call fcn.00401000
mov dword [esi + 0x40], eax
lea ecx, [esp + 0x34]
call fcn.0044ea50
lea ecx, [esp + 0x24]
call fcn.0044ea50
mov ebx, dword [esi + 0x40]
cmp ebx, edi
je 0x409aaf
cmp dword [ebx], edi
jne 0x409b21
cmp ebx, edi
je 0x409aaf
mov ecx, ebx
call fcn.004a1da0
push ebx
call fcn.0051163f
add esp, 4
mov eax, dword [esi]
cmp dword [eax], edi
je 0x409af0
mov edx, dword [eax]
mov eax, dword [edx + 4]
push eax
call fcn.004a3480
push eax
call fcn.004a3590
mov dword [esi + 0x40], eax
mov ecx, dword [eax + 4]
add esp, 8
cmp byte [ecx], 0x2f
mov ecx, eax
jne 0x409ae3
push str.file:__localhost
push edi
call fcn.004a2180
jmp 0x409b21
push str.file:__localhost_
push edi
call fcn.004a2180
jmp 0x409b21
push 8
call fcn.00511699
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], edi
cmp eax, edi
je 0x409b14
push str.file:__localhost_
mov ecx, eax
call fcn.004a1c90
jmp 0x409b16
xor eax, eax
mov dword [esp + 0x4c], 0xffffffff
mov dword [esi + 0x40], eax
mov ecx, dword [esp + 0x1c]
push edi
lea eax, [esi + 0x48]
push eax
push str.Metadata
call fcn.00412200
mov ecx, dword [esp + 0x1c]
push edi
lea eax, [esi + 0x58]
push eax
push str.StructTreeRoot
call fcn.00412200
mov ecx, dword [esp + 0x1c]
push edi
lea eax, [esi + 0x68]
push eax
push str.Outlines
call fcn.00412200
mov ecx, dword [esp + 0x1c]
push edi
lea ebx, [esi + 0x78]
push ebx
push str.AcroForm
call fcn.00412200
cmp dword [ebx], 5
je 0x409b85
mov edx, dword [esi]
push ebx
push esi
push edx
call fcn.004124c0
add esp, 0xc
mov dword [esi + 0x88], eax
mov ecx, dword [esp + 0x1c]
push edi
lea eax, [esi + 0x90]
push eax
push str.OCProperties
call fcn.00412200
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00409840
lea ecx, [esp + 0x14]
call fcn.0044ea50
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4