Function at 0x29af3290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x29b2806c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
mov eax, 0xd
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
push esi
push eax
call fcn.29ad18fe
add esp, 4
xor ebx, ebx
push str.PDF_file_is_damaged___attempting_to_reconstruct_xref_table...
xor eax, eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
call fcn.29ab31e0
mov ecx, dword [edi]
mov dword [edi + 0x38], ebx
mov edx, dword [ecx]
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [edx + 8]
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [edi]
mov edx, dword [ecx]
mov dword [esp + 0x10], eax
push 0x100
lea eax, [esp + 0x48]
push eax
call dword [edx + 0x1c]
test eax, eax
jne 0x29af3320
push str.Couldnt_find_trailer_dictionary
jmp 0x29af3686
xor ebx, ebx
lea esp, [esp]
mov ebp, dword [sym.imp.MSVCRT.dll_strncmp]
push 7
lea esi, [esp + 0x48]
mov ecx, esi
push str.trailer
push ecx
call ebp
add esp, 0xc
test eax, eax
jne 0x29af3459
push 0x30
mov dword [esp + 0x28], 5
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
cmp ebp, ebx
mov dword [esp + 0x150], ebx
je 0x29af33bc
push 0xa0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov byte [esp + 0x150], 1
je 0x29af33a5
mov ecx, dword [edi]
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
add eax, 7
push eax
call dword [edx + 0x40]
push ebx
mov ecx, eax
mov ebx, esi
call fcn.29adeff0
jmp 0x29af33a7
xor eax, eax
mov ecx, eax
xor edx, edx
mov esi, ebp
mov byte [esp + 0x150], 0
call fcn.29ae34f0
mov ebx, eax
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
mov dword [esp + 0x164], 0xffffffff
call fcn.29ae3560
cmp dword [esp + 0x34], 7
jne 0x29af3433
mov edx, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x28]
mov eax, str.Root
call fcn.29ab3190
cmp dword [esp + 0x24], 9
jne 0x29af342a
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea esi, [edi + 0x20]
mov dword [edi + 0x10], eax
cmp dword [esi], 0xd
mov dword [edi + 0x14], ecx
je 0x29af3419
mov ecx, esi
call fcn.29ae1cf0
lea eax, [esp + 0x34]
call fcn.29ae1c10
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x24]
call fcn.29ae1cf0
lea ecx, [esp + 0x34]
call fcn.29ae1cf0
test ebx, ebx
je 0x29af3634
mov eax, ebx
call fcn.29ae3530
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x29af3634
movsx edx, byte [esp + 0x44]
mov ebx, dword [sym.imp.MSVCRT.dll_isdigit]
push edx
call ebx
add esp, 4
test eax, eax
je 0x29af35ed
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
jle 0x29af3634
lea esp, [esp]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x29af34a5
movsx ecx, al
push ecx
call ebx
add esp, 4
test eax, eax
jne 0x29af3490
movsx edx, byte [esi]
mov ebp, dword [sym.imp.MSVCRT.dll_isspace]
push edx
call ebp
add esp, 4
test eax, eax
je 0x29af3634
lea esp, [esp]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x29af34d5
movsx eax, al
push eax
call ebp
add esp, 4
test eax, eax
jne 0x29af34c0
movsx ecx, byte [esi]
push ecx
call ebx
add esp, 4
test eax, eax
je 0x29af3634
push esi
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
mov al, byte [esi + 1]
inc esi
test al, al
je 0x29af3509
movsx edx, al
push edx
call ebx
add esp, 4
test eax, eax
jne 0x29af34f4
movsx eax, byte [esi]
push eax
call ebp
add esp, 4
test eax, eax
je 0x29af3634
lea ebx, [ebx]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x29af3535
movsx ecx, al
push ecx
call ebp
add esp, 4
test eax, eax
jne 0x29af3520
push 3
push 0x29b53428
push esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x29af3634
mov ebx, dword [esp + 0x20]
cmp ebx, dword [edi + 0xc]
jl 0x29af35ae
lea esi, [ebx + 0x100]
and esi, 0xffffff00
jl 0x29af3681
mov edx, dword [edi + 8]
push 0xc
push esi
push edx
call fcn.29ad18b8
mov edx, dword [edi + 0xc]
add esp, 0xc
cmp edx, esi
mov dword [edi + 8], eax
jge 0x29af35ab
lea eax, [edx + edx*2]
mov ecx, esi
shl eax, 2
sub ecx, edx
lea esp, [esp]
mov edx, dword [edi + 8]
mov dword [eax + edx], 0xffffffff
mov edx, dword [edi + 8]
mov dword [eax + edx + 8], 0
add eax, 0xc
dec ecx
jne 0x29af3590
mov dword [edi + 0xc], esi
mov ecx, dword [edi + 8]
lea eax, [ebx + ebx*2]
shl eax, 2
mov edx, dword [ecx + eax + 8]
add ecx, eax
test edx, edx
je 0x29af35ca
mov edx, dword [esp + 0x14]
cmp edx, dword [ecx + 4]
jl 0x29af3634
mov esi, dword [edi + 4]
mov edx, dword [esp + 0x10]
sub edx, esi
mov dword [ecx], edx
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + ecx + 8], 1
jmp 0x29af3634
push 9
lea edx, [esp + 0x48]
push str.endstream
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x29af3634
mov eax, dword [esp + 0x1c]
cmp dword [edi + 0x38], eax
jne 0x29af3624
add eax, 0x40
push 4
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x34]
push eax
call fcn.29ad18b8
add esp, 0xc
mov dword [edi + 0x34], eax
mov ecx, dword [edi + 0x38]
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0x34]
mov dword [edx + ecx*4], eax
inc dword [edi + 0x38]
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [edi]
push 0x100
lea edx, [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
test eax, eax
jne 0x29af331a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x29af3310
mov eax, 1
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
push str.Bad_object_number
or eax, 0xffffffff
call fcn.29ab31e0
mov ecx, dword [esp + 0x14c]
add esp, 4
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x148
ret