Function at 0x50d750
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 esi, esi
mov ebx, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], vtable.WindowsFile.0
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], esi
mov byte [esp + 0x40], 0
mov byte [esp + 0x440], 0
mov dword [esp + 0x478], esi
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jne 0x50d7ed
push str.ERROR_23718:_record_reader_configuration_is_invalid
mov ecx, 0x610240
call fcn.00504670
add esp, 4
jmp 0x50db20
push edi
push 0x5c7d4c
push 0x5e8234
lea edi, [esp + 0x38]
call fcn.00508fc0
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, esi
je 0x50d829
push eax
mov eax, dword [esp + 0x24]
push eax
push str.ERROR_23719:_unable_to_open_file___s___LastError__d_
mov ecx, 0x610240
call fcn.00504670
add esp, 0xc
jmp 0x50db20
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x50d860
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x3c], eax
cmp eax, esi
jne 0x50d915
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], esi
mov ecx, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0xc]
call eax
lea eax, [ebx + 8]
mov ecx, eax
mov edi, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
nop
cmp dword [esp + 0x20], esi
je 0x50d938
mov eax, ecx
sub eax, edi
cmp eax, 0x40000
jge 0x50d938
cmp edi, ecx
jae 0x50d8c0
push eax
lea eax, [ebx + 8]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, edi
sub eax, ebx
sub eax, 8
cdq
add dword [esp + 0x14], eax
mov eax, ebx
adc dword [esp + 0x18], edx
mov edx, ebx
sub edx, edi
lea ecx, [ecx + edx + 8]
sub eax, ecx
add eax, 0x100008
push eax
mov dword [esp + 0x20], ecx
push ecx
lea ecx, [esp + 0x34]
lea edi, [ebx + 8]
call fcn.005097e0
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
jle 0x50d930
mov eax, dword [ebx + 0x100408]
cmp eax, 1
jne 0x50d920
mov eax, dword [esp + 0x1c]
mov ecx, esi
call fcn.0050ca20
jmp 0x50d930
xor eax, eax
mov dword [esp + 0x18], esi
jmp 0x50d864
cmp eax, 0xffffffff
jne 0x50d930
mov eax, dword [esp + 0x1c]
mov ecx, esi
call fcn.0050c9d0
add dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x1c]
cmp edi, ecx
jae 0x50da96
mov esi, edi
mov edx, dword [ebx + 0x10040c]
mov al, byte [esi]
test edx, edx
jne 0x50d959
movsx edx, al
cmp edx, dword [ebx + 0x100410]
jmp 0x50d977
cmp edx, 1
jne 0x50d96a
cmp al, 0xd
je 0x50d9e6
cmp al, 0xa
jmp 0x50d977
cmp edx, 2
jne 0x50d979
cmp al, 0xd
jne 0x50d979
cmp byte [esi + 1], 0xa
je 0x50d9e6
cmp dword [ebx + 0x100414], 1
jne 0x50d9dd
test al, al
jne 0x50d98b
add esi, 2
jmp 0x50d9de
cmp al, 1
je 0x50d9dd
cmp al, 2
je 0x50d9dd
cmp al, 3
je 0x50d9dd
cmp al, 4
jne 0x50d9a0
add esi, 3
jmp 0x50d9de
cmp al, 5
jne 0x50d9a9
add esi, 3
jmp 0x50d9de
cmp al, 6
jne 0x50d9b2
add esi, 3
jmp 0x50d9de
cmp al, 7
jne 0x50d9bb
add esi, 3
jmp 0x50d9de
cmp al, 8
jne 0x50d9c4
add esi, 3
jmp 0x50d9de
cmp al, 9
je 0x50d9dd
cmp al, 0xa
je 0x50d9dd
cmp al, 0xc
je 0x50d9dd
cmp al, 0xd
je 0x50d9dd
cmp al, 0xe
jne 0x50d9dd
add esi, 5
jmp 0x50d9de
inc esi
cmp esi, ecx
jb 0x50d942
cmp esi, ecx
ja 0x50dae4
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jg 0x50dae4
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
push eax
mov eax, edi
sub eax, ebx
sub eax, 8
cdq
add eax, dword [esp + 0x18]
push edi
adc edx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 4]
push edx
push eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x50dac0
mov ecx, dword [ebx + 0x10040c]
mov eax, esi
test ecx, ecx
jne 0x50da3d
inc esi
jmp 0x50da61
cmp ecx, 1
jne 0x50da5a
mov cl, byte [esi]
cmp cl, 0xa
jne 0x50da4c
inc esi
jmp 0x50da61
cmp cl, 0xd
jne 0x50da61
inc esi
cmp byte [esi], 0xa
jne 0x50da61
inc esi
jmp 0x50da61
cmp ecx, 2
jne 0x50da61
add esi, ecx
mov ecx, dword [ebx + 4]
mov edi, dword [ecx]
mov edx, esi
sub edx, eax
push edx
push eax
sub eax, ebx
sub eax, 8
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [edi + 8]
call eax
test eax, eax
jne 0x50dad0
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edi, esi
xor esi, esi
jmp 0x50d890
lea ecx, [esp + 0x2c]
call fcn.005096c0
mov ebx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.WindowsFile.0
call fcn.005096c0
xor eax, eax
jmp 0x50db36
lea ecx, [esp + 0x2c]
call fcn.005096c0
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
jmp 0x50db1b
lea ecx, [esp + 0x2c]
call fcn.005096c0
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
jmp 0x50db1b
mov eax, edi
sub eax, ebx
sub eax, 8
cdq
add eax, dword [esp + 0x14]
mov ecx, 0x610240
adc edx, dword [esp + 0x18]
sub esi, edi
push edx
push eax
push esi
push str.ERROR_23720:_data_size_is_beyond_expected_limits__datasize__d___offset_0x_016I64X_
call fcn.00504670
add esp, 0x10
lea ecx, [esp + 0x2c]
call fcn.005096c0
mov ebx, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, ebx
mov eax, dword [edx + 0x14]
call eax
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