Function at 0x50dba0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59f92b
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x601018]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], vtable.WindowsFile.0
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x440], bl
mov dword [esp + 0x478], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jne 0x50dc37
push str.ERROR_23721:_record_reader_configuration_is_invalid
mov ecx, 0x610240
call fcn.00504670
add esp, 4
jmp 0x50dea0
push edi
push 0x5c7d4c
push 0x5e8234
lea edi, [esp + 0x38]
call fcn.00508fc0
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, ebx
je 0x50dc73
push eax
mov eax, dword [esp + 0x24]
push eax
push str.ERROR_23722:_unable_to_open_file___s___LastError__d_
mov ecx, 0x610240
call fcn.00504670
add esp, 0xc
jmp 0x50dea0
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
jne 0x50dca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x3c], eax
cmp eax, ebx
jne 0x50dce3
mov edi, dword [esp + 0x14]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebx
push edi
call edx
mov eax, dword [esi + 0x10040c]
cdq
push edx
push eax
push ebx
push edi
call fcn.00596ca0
or eax, edx
je 0x50dcef
mov eax, dword [esi + 0x10040c]
push eax
push ebx
push edi
push str.ERROR_23723:_the_file_size___I64d__is_not_a_multiple_of_the_record_length___d_
jmp 0x50de7e
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
jmp 0x50dcb0
lea edi, [esi + 8]
xor eax, eax
mov ebx, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea ebx, [ebx]
cmp dword [esp + 0x24], 0
je 0x50dd9f
mov eax, ebx
sub eax, edi
cmp eax, 0x40000
jge 0x50dd9f
cmp edi, ebx
jae 0x50dd39
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 eax, esi
mov ecx, esi
adc dword [esp + 0x18], edx
sub eax, edi
lea ebx, [ebx + eax + 8]
sub ecx, ebx
add ecx, 0x100008
push ecx
push ebx
lea ecx, [esp + 0x34]
lea edi, [esi + 8]
call fcn.005097e0
mov dword [esp + 0x24], eax
test eax, eax
jle 0x50dd99
mov ecx, dword [esi + 0x100408]
cmp ecx, 1
jne 0x50dd87
mov ecx, eax
mov eax, ebx
call fcn.0050ca20
jmp 0x50dd95
cmp ecx, 0xffffffff
jne 0x50dd99
mov ecx, eax
mov eax, ebx
call fcn.0050c9d0
mov eax, dword [esp + 0x24]
add ebx, eax
mov dword [esp + 0x20], ebx
cmp edi, ebx
jae 0x50de2a
mov edx, dword [esi + 0x10040c]
lea ecx, [edx + edi]
mov dword [esp + 0x28], ecx
cmp ecx, ebx
ja 0x50de64
mov eax, ecx
sub eax, edi
cmp eax, edx
jg 0x50de64
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
mov edx, dword [ebx + 4]
push eax
call edx
test eax, eax
jne 0x50de54
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x10040c]
sub ecx, eax
add ecx, edi
push ecx
mov ecx, dword [esi + 4]
push eax
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
push edx
mov edx, dword [ebx + 8]
push eax
call edx
test eax, eax
jne 0x50de54
add edi, dword [esi + 0x10040c]
mov ebx, dword [esp + 0x20]
jmp 0x50dd10
lea ecx, [esp + 0x2c]
call fcn.005096c0
mov esi, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.WindowsFile.0
call fcn.005096c0
xor eax, eax
jmp 0x50deb6
lea ecx, [esp + 0x2c]
call fcn.005096c0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
jmp 0x50de9b
mov eax, edi
sub eax, esi
sub eax, 8
cdq
add eax, dword [esp + 0x14]
adc edx, dword [esp + 0x18]
sub ecx, edi
push edx
push eax
push ecx
push str.ERROR_23724:_data_size_is_beyond_expected_limits__datasize__d___offset_0x_016I64X_
mov ecx, 0x610240
call fcn.00504670
add esp, 0x10
lea ecx, [esp + 0x2c]
call fcn.005096c0
mov esi, dword [esi + 4]
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0x14]
call edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.WindowsFile.0
call fcn.005096c0
mov eax, 1
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00596083
mov esp, ebp
pop ebp
ret 4