Function at 0x50e24c
Capabilities:
Get file size

Disassembly:
push 0x30
mov eax, 0x728c70
call fcn.0054dcb7
mov edi, ecx
mov dword [ebp - 0x18], edi
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x28]
cmp eax, esi
mov ebx, dword [edi + 0x24]
mov edx, dword [edi + 0x2c]
jne 0x50e271
cmp ebx, edx
je 0x50e2ee
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0xc]
push 0
pop eax
adc eax, dword [ebp + 0x10]
cmp eax, edx
ja 0x50e2ee
jb 0x50e287
cmp ecx, esi
ja 0x50e2ee
cmp eax, ebx
jb 0x50e2ee
ja 0x50e292
cmp ecx, dword [edi + 0x20]
jbe 0x50e2ee
cmp dword [ebp + 0x10], ebx
jb 0x50e2b8
ja 0x50e2a1
mov eax, dword [edi + 0x20]
cmp dword [ebp + 0xc], eax
jb 0x50e2b8
push dword [ebp + 0x14]
push 0
push dword [ebp + 8]
call fcn.0054b920
add esp, 0xc
mov al, 1
jmp 0x50e44c
mov esi, dword [edi + 0x20]
sub esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [esi + ebx]
mov ecx, ebx
sub ecx, eax
add ecx, dword [ebp + 0x14]
push ecx
push 0
push eax
call fcn.0054b920
add esp, 0xc
push dword [ebp + 0x18]
mov ecx, edi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0050e24c
jmp 0x50e44c
lea eax, [edi + 0xd0]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 0x28], 0
call fcn.0040d4f7
and dword [ebp - 4], 0
or esi, 0xffffffff
cmp dword [edi + 0x108], esi
jne 0x50e320
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.0040d1d9
jmp 0x50e2b1
cmp dword [ebp + 0x14], 0
jne 0x50e33a
mov bl, 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.0040d1d9
mov al, bl
jmp 0x50e44c
lea ebx, [edi + 0xc4]
cmp dword [ebx], esi
jne 0x50e348
xor bl, bl
jmp 0x50e328
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
mov dword [ebp - 0x38], eax
jne 0x50e369
lea esi, [ebp - 0x38]
call fcn.00477fc3
jmp 0x50e36c
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0xc]
mov esi, eax
push 0
pop eax
adc eax, dword [ebp + 0x10]
cmp edx, eax
ja 0x50e399
jb 0x50e384
cmp esi, ecx
jae 0x50e399
mov dword [ebp - 0x1c], 0x7c6d60
push 0x7f3ac8
lea eax, [ebp - 0x1c]
push eax
call fcn.0054d859
mov edx, dword [edi + 0x78]
cmp dword [edi + 0x7c], eax
ja 0x50e3b8
jb 0x50e3a7
cmp edx, ecx
jae 0x50e3b8
mov dword [ebp - 0x20], str.Attempt_to_read_beyond_m_valid_data_length
push 0x7f3ac8
lea eax, [ebp - 0x20]
jmp 0x50e393
mov esi, dword [ebp + 0x10]
push 0
push dword [ebp + 0x14]
push dword [ebp + 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00478072
cmp byte [ebp + 0x18], 0
mov byte [ebp - 0x11], al
je 0x50e41a
and dword [ebp + 0x18], 0
cmp dword [ebp + 0x18], 3
jge 0x50e416
cmp byte [ebp - 0x11], 0
je 0x50e43d
push 1
push dword [ebp + 0x14]
push dword [ebp + 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00478072
test al, al
jne 0x50e41a
push 0
push dword [ebp + 0x14]
push dword [ebp + 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00478072
inc dword [ebp + 0x18]
mov byte [ebp - 0x11], al
jmp 0x50e3da
mov byte [ebp - 0x11], 0
cmp byte [ebp - 0x11], 0
je 0x50e43d
mov eax, dword [edi + 8]
cmp byte [eax + 0x114], 0
je 0x50e43d
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
call fcn.0046181b
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
call fcn.0040d1d9
mov al, byte [ebp - 0x11]
call fcn.0054dd5c
ret 0x14