Function at 0x524360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1c48
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [0x610e7c]
mov esi, dword [0x610e78]
xor ecx, ecx
mov dword [esp + 0x28], eax
mov edx, 8
mul edx
seto cl
mov dword [esp + 0x30], esi
neg ecx
or ecx, eax
push ecx
call fcn.00596073
add esp, 4
push esi
mov dword [esp + 0x30], eax
call fcn.00596073
xor edi, edi
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], vtable.PDFObjID.0
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], edi
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push esi
mov dword [esp + 0x60], edi
call fcn.00502a60
cmp eax, edi
jg 0x524413
push 0xea1b
push str.ERROR__d:_failed_to_read_page_object_from_file_when_calling_GetPagePDF2__
mov ecx, 0x610240
call fcn.00504670
add esp, 8
or edi, 0xffffffff
jmp 0x52476e
movzx ebx, byte [esi + 4]
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 1]
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, ecx
shl ebx, 8
or ebx, edx
lea eax, [esp + 0x3c]
lea edx, [esi + 5]
push eax
mov ecx, ebx
mov dword [esp + 0x28], edx
call fcn.00529490
mov ecx, dword [esp + 0x48]
add esp, 4
test ecx, ecx
jle 0x524457
cmp dword [esp + 0x48], 0
jge 0x524463
push 0xea1c
push str.ERROR__d:_failed_to_get_page_object_id_when_calling_GetPagePDF2__
jmp 0x5243fe
movzx edi, byte [ebx + esi + 8]
movzx edx, byte [ebx + esi + 7]
lea eax, [ebx + 5]
shl edi, 8
or edi, edx
movzx edx, byte [eax + esi + 1]
shl edi, 8
or edi, edx
movzx edx, byte [eax + esi]
add eax, 4
shl edi, 8
or edi, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], edi
cmp edi, eax
jl 0x5244c2
push eax
mov eax, dword [esp + 0x4c]
push edi
push eax
push ecx
push 0xea1d
push str.ERROR__d:_page_obj___d___d__has_too_many_references____d____d___when_calling_GetPagePDF2__
mov ecx, 0x610240
call fcn.00504670
add esp, 0x18
or edi, 0xffffffff
jmp 0x52476e
test edi, edi
jns 0x5244ec
mov edx, dword [esp + 0x48]
push edi
push edx
push ecx
push 0xea1e
push str.ERROR__d:_page_obj___d___d__has_wrong_reference_number___d__when_calling_GetPagePDF2__
mov ecx, 0x610240
call fcn.00504670
add esp, 0x14
or edi, 0xffffffff
jmp 0x52476e
mov ecx, dword [esp + 0x24]
mov esi, dword [ebp + 0xc]
lea eax, [edi + edi*2 + 3]
add eax, eax
add eax, eax
mov dword [esp + 0x28], eax
add eax, 4
push ebx
mov dword [esp + 0x20], eax
push ecx
add eax, esi
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
add eax, ebx
mov byte [eax + esi], 0xa
inc eax
mov dword [esp + 0x28], eax
lea eax, [edx + ebx + 5]
add esp, 0xc
inc ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
test edi, edi
jle 0x524571
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
call fcn.00503ae0
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
add dword [esp + 0x18], 8
mov dword [edi + ecx*8], eax
mov dword [edi + ecx*8 + 4], edx
mov edi, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, edi
jl 0x524547
lea eax, [edi + 1]
mov byte [esi + 3], al
mov ecx, eax
shr ecx, 0x18
mov byte [esi], cl
mov edx, eax
shr edx, 0x10
mov byte [esi + 1], dl
mov ecx, eax
mov eax, dword [esp + 0x44]
shr ecx, 8
mov byte [esi + 2], cl
mov edx, eax
shr edx, 0x18
mov byte [esi + 4], dl
mov byte [esi + 7], al
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 5], cl
mov edx, eax
mov eax, dword [esp + 0x48]
shr edx, 8
mov byte [esi + 6], dl
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 8], cl
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi + 9], dl
mov byte [esi + 0xa], cl
mov byte [esi + 0xb], al
mov dword [esi + 0xc], 0
mov dword [esp + 0x18], 0
test edi, edi
jle 0x524766
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
add esi, 0x12
jmp 0x5245f8
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
cmp ecx, dword [eax + 0x7c]
je 0x524644
push 0x30
sub eax, 0xffffff80
push 0
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x44]
add esp, 0xc
lea ecx, [eax + 0x58]
push 0
mov dword [eax + 0xc0], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
push 0
push edx
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [eax + 0x7c], ecx
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
mov dword [eax + 0x78], edx
call fcn.00502a60
test eax, eax
js 0x5247b1
je 0x5247dd
mov edx, dword [esp + 0x14]
movzx edi, byte [edx + 4]
mov eax, edx
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [eax + 1]
shl edi, 8
or edi, edx
shl edi, 8
or edi, ecx
jle 0x5247f9
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
add edx, edi
mov dword [esp + 0x28], edx
cmp edx, ecx
jge 0x52482e
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
lea edx, [eax + 5]
call fcn.00529490
mov eax, dword [esp + 0x48]
mov byte [esi + 1], al
mov edx, eax
shr edx, 0x18
mov byte [esi - 2], dl
mov ecx, eax
shr ecx, 0x10
mov byte [esi - 1], cl
mov edx, eax
mov eax, dword [esp + 0x4c]
shr edx, 8
mov byte [esi], dl
mov ecx, eax
shr ecx, 0x18
mov byte [esi + 2], cl
mov edx, eax
mov byte [esi + 5], al
shr edx, 0x10
mov byte [esi + 3], dl
mov ecx, eax
shr ecx, 8
mov byte [esi + 4], cl
mov eax, ebx
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esi + 7], al
mov eax, dword [esp + 0x18]
add esp, 4
mov byte [esi + 6], dl
mov edx, dword [esp + 0x1c]
add edx, dword [ebp + 0xc]
push edi
add eax, 5
mov ecx, ebx
push eax
shr ecx, 8
push edx
mov byte [esi + 8], cl
mov byte [esi + 9], bl
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x34]
add dword [esp + 0x30], 8
add eax, edi
mov byte [eax + ecx], 0xa
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
inc eax
inc edx
add esp, 0xc
add esi, 0xc
mov dword [esp + 0x28], edx
lea ebx, [ebx + edi + 1]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x20]
jl 0x5245f0
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push edx
call ebx
add esp, 4
push esi
call ebx
mov dword [esp + 0x5c], 0xffffffff
mov ecx, dword [esp + 0x44]
add esp, 4
test ecx, ecx
je 0x52479c
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push edi
push eax
push ecx
push edx
push 0xea1f
push str.ERROR__d:_failed_to_read_object_data_for_page_obj__d___d__from_file_when_reading___d_th_of__d
mov ecx, 0x610240
call fcn.00504670
add esp, 0x18
or edi, 0xffffffff
jmp 0x52476a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push edi
push eax
push ecx
push edx
push 0xea20
push str.ERROR__d:_empty_data_for_page_obj__d___d__from_file_when_reading___d_th_of__d
jmp 0x5247cb
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edx
push eax
push edi
push 0xea21
push str.ERROR__d:_incorrect_object_size__d__of__dth_reference_for_page_obj__d___d__when_reading__d_th_of__d
mov ecx, 0x610240
call fcn.00504670
add esp, 0x20
or edi, 0xffffffff
jmp 0x52476a
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x4c]
push edx
push ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
push 0xea22
push str.ERROR__d:_page_obj__d___d__data_is_too_big______d___when_reading__d_th_of__d
mov ecx, 0x610240
call fcn.00504670
add esp, 0x1c
or edi, 0xffffffff
jmp 0x52476a