Function at 0x50cf60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59f96b
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x601018]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x1c], edi
call edx
test eax, eax
jne 0x50cfcb
push str.ERROR_23711:_record_reader_configuration_is_invalid
mov ecx, 0x610240
call fcn.00504670
add esp, 4
jmp 0x50d5ab
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], vtable.WindowsFile.0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x58], ebx
mov byte [esp + 0x60], bl
mov byte [esp + 0x460], bl
push edi
push 0x5c7d4c
push 0x5e8234
lea edi, [esp + 0x58]
mov dword [esp + 0x4a4], ebx
call fcn.00508fc0
mov eax, dword [esp + 0x68]
add esp, 0xc
cmp eax, ebx
je 0x50d033
push eax
mov eax, dword [esp + 0x20]
push eax
push str.ERROR_23712:_unable_to_open_file___s___LastError__d_
mov ecx, 0x610240
call fcn.00504670
add esp, 0xc
jmp 0x50d59a
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x50d074
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x5c], eax
cmp eax, ebx
je 0x50d074
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jmp 0x50d078
mov dword [esp + 0x5c], ebx
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
mov edx, dword [esp + 0x30]
push edx
call eax
lea edi, [esi + 8]
mov eax, 1
mov ebx, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], eax
jmp 0x50d0b4
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x28], 0
je 0x50d141
mov eax, ebx
sub eax, edi
cmp eax, 0x40000
jge 0x50d141
cmp edi, ebx
jae 0x50d0dd
push eax
lea eax, [esi + 8]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add dword [esp + 0x14], eax
mov ecx, esi
adc dword [esp + 0x18], edx
sub ecx, edi
lea ebx, [ebx + ecx + 8]
mov edx, esi
sub edx, ebx
add edx, 0x100008
push edx
push ebx
lea ecx, [esp + 0x54]
lea edi, [esi + 8]
call fcn.005097e0
mov ecx, eax
mov dword [esp + 0x28], ecx
test ecx, ecx
jle 0x50d13b
mov eax, dword [esi + 0x100408]
cmp eax, 1
jne 0x50d12b
mov eax, ebx
call fcn.0050ca20
jmp 0x50d137
cmp eax, 0xffffffff
jne 0x50d13b
mov eax, ebx
call fcn.0050c9d0
mov ecx, dword [esp + 0x28]
add ebx, ecx
mov dword [esp + 0x20], ebx
cmp edi, ebx
jae 0x50d400
cmp dword [esp + 0x40], 0
je 0x50d19c
mov ecx, dword [esi + 0x10040c]
mov dword [esp + 0x40], 0
test ecx, ecx
je 0x50d0b4
sub ebx, edi
cmp ebx, ecx
jle 0x50d42d
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
push ecx
adc edx, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push edi
push edx
push eax
mov eax, dword [ebx + 8]
call eax
add edi, dword [esi + 0x10040c]
jmp 0x50d0b0
mov eax, dword [esi + 0x100410]
mov ecx, dword [esp + 0x2c]
cdq
sub ecx, eax
mov eax, dword [esp + 0x30]
sbb eax, edx
mov dword [esp + 0x48], eax
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
adc edx, dword [esp + 0x18]
cmp eax, ecx
jne 0x50d1ef
cmp edx, dword [esp + 0x48]
jne 0x50d1f3
mov ecx, dword [esi + 4]
mov ebx, dword [ecx]
mov ecx, dword [esi + 0x100410]
push ecx
mov ecx, dword [esi + 4]
push edi
push edx
mov edx, dword [ebx + 8]
push eax
call edx
add edi, dword [esi + 0x100410]
jmp 0x50d0b0
cmp edx, dword [esp + 0x48]
jg 0x50d456
jl 0x50d203
cmp eax, ecx
ja 0x50d456
mov ecx, dword [esi + 0x100414]
test ecx, ecx
je 0x50d2d6
cmp dword [esp + 0x24], 0
jne 0x50d2d6
cmp dword [esp + 0x3c], 0
je 0x50d22d
mov dword [esp + 0x3c], 0
jmp 0x50d260
mov ecx, dword [esp + 0x20]
mov ebx, dword [esi + 0x100418]
sub ecx, edi
cmp ecx, ebx
jl 0x50d47f
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
push ebx
push edi
push edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 8]
call edx
add edi, dword [esi + 0x100418]
mov eax, dword [esp + 0x20]
mov ebx, dword [esi + 0x100414]
sub eax, edi
cmp eax, ebx
jl 0x50d4a8
mov ecx, dword [esi + 0x100424]
mov edx, dword [esi + 0x100428]
mov eax, dword [esi + 0x100420]
push ecx
mov ecx, dword [esi + 0x10041c]
push edx
mov edx, edi
call fcn.0050cef0
mov ecx, eax
mov dword [esp + 0x24], ecx
cmp ecx, 0x4000
ja 0x50d4d1
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
push ebx
adc edx, dword [esp + 0x1c]
push edi
push edx
push eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
call eax
add edi, dword [esi + 0x100414]
mov eax, dword [esp + 0x20]
mov ebx, dword [esi + 0x10042c]
sub eax, edi
mov dword [esp + 0x38], eax
cmp eax, ebx
jl 0x50d4ee
mov ecx, dword [esi + 0x10043c]
mov edx, dword [esi + 0x100440]
mov eax, dword [esi + 0x100438]
push ecx
mov ecx, dword [esi + 0x100434]
push edx
mov edx, edi
call fcn.0050cef0
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
js 0x50d560
cmp ecx, 0x4000
jg 0x50d560
mov eax, dword [esi + 0x100430]
lea edx, [eax + ebx]
add edx, ecx
cmp dword [esp + 0x38], edx
jl 0x50d514
cmp dword [esi + 0x100414], 0
je 0x50d359
cmp dword [esp + 0x24], edx
jl 0x50d53a
add eax, ebx
add eax, ecx
sub dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, dword [esi + 4]
mov dword [esp + 0x38], eax
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
push ebx
adc edx, dword [esp + 0x1c]
push edi
push edx
push eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 8]
call eax
test eax, eax
jne 0x50d585
add edi, dword [esi + 0x10042c]
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov ecx, dword [esp + 0x1c]
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
push ecx
adc edx, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push edi
push edx
mov edx, dword [ebx + 4]
push eax
call edx
test eax, eax
jne 0x50d585
mov eax, dword [esi + 0x100430]
add edi, dword [esp + 0x1c]
test eax, eax
je 0x50d0b0
mov ecx, dword [esi + 4]
mov ebx, dword [ecx]
push eax
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x18]
push edi
adc edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [ebx + 8]
call eax
test eax, eax
jne 0x50d585
add edi, dword [esi + 0x100430]
jmp 0x50d0b0
lea ecx, [esp + 0x4c]
call fcn.005096c0
mov esi, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.WindowsFile.0
call fcn.005096c0
xor eax, eax
jmp 0x50d5b0
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
mov ecx, 0x610240
adc edx, dword [esp + 0x18]
push edx
push eax
push str.ERROR_23713:_unexpected_end_of_file_reading_file_header__offset_0x_016I64X_
call fcn.00504670
add esp, 0xc
jmp 0x50d585
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
mov ecx, 0x610240
adc edx, dword [esp + 0x18]
push edx
push eax
push str.ERROR_23714:_unexpected_end_of_file_reading_file_footer__offset_0x_016I64X_
call fcn.00504670
add esp, 0xc
jmp 0x50d585
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
mov ecx, 0x610240
adc edx, dword [esp + 0x18]
push edx
push eax
push str.ERROR_23725:_unexpected_end_of_file_reading_block_footer__offset_0x_016I64X_
call fcn.00504670
add esp, 0xc
jmp 0x50d585
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
mov ecx, 0x610240
adc edx, dword [esp + 0x18]
push edx
push eax
push str.ERROR_23726:_unexpected_end_of_file_reading_block_header__offset_0x_016I64X_
call fcn.00504670
add esp, 0xc
jmp 0x50d585
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
adc edx, dword [esp + 0x18]
push edx
push eax
push ecx
push str.ERROR_23727:_block_length___d__is_beyond_expected_limits__offset_0x_016I64X_
jmp 0x50d578
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
mov ecx, 0x610240
adc edx, dword [esp + 0x18]
push edx
push eax
push str.ERROR_23715:_unexpected_end_of_file_reading_record_header__offset_0x_016I64X_
call fcn.00504670
add esp, 0xc
jmp 0x50d585
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
mov ecx, 0x610240
adc edx, dword [esp + 0x18]
push edx
push eax
push str.ERROR_23717:_unexpected_end_of_file_reading_record_data__offset_0x_016I64X_
call fcn.00504670
add esp, 0xc
jmp 0x50d585
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
mov ecx, 0x610240
adc edx, dword [esp + 0x18]
push edx
push eax
push str.ERROR_23728:_unexpected_end_of_block_reading_record_data__offset_0x_016I64X_
call fcn.00504670
add esp, 0xc
jmp 0x50d585
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
adc edx, dword [esp + 0x18]
push edx
push eax
push ecx
push str.ERROR_23716:_record_length___d__at_offset__0x_016I64X__is_outside_of_the_normal_range__check_the_format_related_settings_in_the_profile_to_make_sure_they_match_this_stream
mov ecx, 0x610240
call fcn.00504670
add esp, 0x10
lea ecx, [esp + 0x4c]
call fcn.005096c0
mov esi, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.WindowsFile.0
call fcn.005096c0
mov eax, 1
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.00596083
mov esp, ebp
pop ebp
ret 4