Function at 0x53f820
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f002
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebx + 0x820]
push eax
mov dword [ebp - 0x458], ebx
mov esi, ecx
mov dword [ebx], vtable.PDFFrameInfo.0
call fcn.00447a40
lea ecx, [ebx + 0x860]
xor edi, edi
push ecx
mov dword [ebp - 4], edi
call fcn.0053e870
mov dword [ebx + 0x8a8], edi
mov dword [ebx + 0x8ac], edi
mov dword [ebx + 0x8b0], edi
mov byte [ebp - 4], 2
push 0x30
mov dword [ebx + 0x8c0], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, edi
je 0x53faf6
mov dword [ebx + 0x8bc], eax
mov dword [eax], eax
mov eax, dword [ebx + 0x8bc]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x8bc]
mov dword [eax + 8], eax
mov edx, dword [ebx + 0x8bc]
mov byte [edx + 0x2c], 1
mov eax, dword [ebx + 0x8bc]
mov byte [eax + 0x2d], 1
mov byte [ebp - 4], 3
push 0x48
mov dword [ebx + 0x8d4], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, edi
je 0x53fac2
mov dword [ebx + 0x8d0], eax
mov dword [eax], eax
mov eax, dword [ebx + 0x8d0]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x8d0]
mov dword [eax + 8], eax
mov ecx, dword [ebx + 0x8d0]
mov byte [ecx + 0x40], 1
mov edx, dword [ebx + 0x8d0]
mov byte [edx + 0x41], 1
mov byte [ebp - 4], 4
mov eax, ebx
mov dword [ebx + 0x8dc], edi
call fcn.0053fcb0
push esi
lea edi, [ebx + 0xc]
push 0x5c7d4c
mov esi, 0x400
call fcn.004f9520
lea eax, [ebx + 0x848]
lea ecx, [ebx + 0x84c]
push eax
call fcn.00528170
lea ecx, [ebx + 0x850]
add esp, 0xc
push ecx
mov ecx, edi
mov esi, eax
call fcn.00528420
add esp, 4
lea edx, [ebx + 0x854]
push edx
push edi
mov dword [ebp - 0x454], eax
call fcn.00528650
xor ecx, ecx
add esp, 8
cmp esi, ecx
jle 0x53f99d
cmp dword [ebp - 0x454], ecx
jle 0x53f99d
cmp eax, ecx
jle 0x53f99d
mov dword [ebx + 8], 1
jmp 0x53f9a0
mov dword [ebx + 8], ecx
or esi, 0xffffffff
mov dword [ebp - 0x444], ecx
mov dword [ebp - method.WindowsFile.virtual_0], vtable.WindowsFile.0
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], ecx
mov byte [ebp - 0x434], cl
mov byte [ebp - 0x34], cl
push edi
push 0x5c7d4c
push 0x5ebfb8
lea edi, [ebp - 0x448]
mov byte [ebp - 4], 5
call fcn.00508fc0
xor edi, edi
add esp, 0xc
cmp dword [ebp - 0x438], edi
jne 0x53fa61
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x44c]
push eax
push ecx
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x450], eax
cmp eax, esi
jne 0x53fa2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x438], eax
cmp eax, edi
jne 0x53fa49
mov eax, dword [ebp - 0x450]
mov edx, dword [ebp - 0x44c]
mov dword [ebp - 0x438], edi
mov dword [ebx + 0x818], eax
mov dword [ebx + 0x81c], edx
jmp 0x53fa6d
xor eax, eax
mov edx, edi
mov dword [ebp - 0x44c], edi
mov dword [ebx + 0x818], eax
mov dword [ebx + 0x81c], edx
jmp 0x53fa6d
mov dword [ebx + 0x818], esi
mov dword [ebx + 0x81c], esi
lea ecx, [ebp - 0x448]
call fcn.005096c0
mov ecx, dword [ebx + 0x81c]
mov eax, dword [ebx + 0x818]
mov dword [ebx + 0x86c], ecx
lea ecx, [ebp - 0x448]
mov dword [ebx + 0x868], eax
mov dword [ebp - method.WindowsFile.virtual_0], vtable.WindowsFile.0
call fcn.005096c0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x44c]
push edx
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x44c], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x5f190c
lea eax, [ebp - 0x470]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x454], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x5f190c
lea edx, [ebp - 0x464]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3