Function at 0x50e4d2
Capabilities:
Get file size

Disassembly:
push 0x50
mov eax, 0x72d2a4
call fcn.0054dcb7
mov edi, ecx
mov dword [ebp - 0x1c], 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 0x50e4f7
cmp ebx, edx
je 0x50e54d
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0xc]
push 0
pop eax
adc eax, dword [ebp + 0x10]
cmp eax, edx
ja 0x50e54d
jb 0x50e50d
cmp ecx, esi
ja 0x50e54d
cmp eax, ebx
jb 0x50e54d
ja 0x50e518
cmp ecx, dword [edi + 0x20]
jbe 0x50e54d
cmp dword [ebp + 0x10], ebx
jb 0x50e531
ja 0x50e527
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0x20]
jb 0x50e531
mov al, 1
call fcn.0054dd5c
ret 0x14
push dword [ebp + 0x18]
mov eax, dword [edi + 0x20]
sub eax, dword [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050e4d2
jmp 0x50e529
lea eax, [edi + 0xd0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0x24], 0
call fcn.0040d4f7
and dword [ebp - 4], 0
or esi, 0xffffffff
cmp dword [edi + 0x108], esi
jne 0x50e57f
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.0040d1d9
jmp 0x50e527
cmp dword [ebp + 0x14], 0
jne 0x50e597
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
call fcn.0040d1d9
mov al, bl
jmp 0x50e529
lea ebx, [edi + 0xc4]
cmp dword [ebx], esi
mov dword [ebp - 0x18], ebx
jne 0x50e5a8
xor bl, bl
jmp 0x50e587
cmp byte [edi + 0xc8], 0
je 0x50e5bb
push edi
call fcn.0050dd0e
test al, al
je 0x50e5a4
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
mov dword [ebp - 0x30], eax
jne 0x50e5e0
lea esi, [ebp - 0x30]
call fcn.00477fc3
mov ecx, eax
mov eax, edx
jmp 0x50e5e5
mov ecx, eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edi + 0x24]
ja 0x50e646
jb 0x50e5f1
cmp ecx, dword [edi + 0x20]
jae 0x50e646
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
jne 0x50e613
lea esi, [ebp - 0x38]
call fcn.00477fc3
mov ecx, eax
mov eax, edx
jmp 0x50e618
mov ecx, eax
mov eax, dword [ebp - 0x34]
mov edx, dword [edi + 0x24]
mov esi, dword [edi + 0x20]
add ecx, 0xa00000
adc eax, 0
cmp eax, edx
jb 0x50e646
ja 0x50e631
cmp ecx, esi
jbe 0x50e646
push edx
push esi
mov esi, ebx
call fcn.00477f35
mov eax, dword [edi + 0x20]
mov dword [edi + 0x78], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x7c], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
jne 0x50e666
lea esi, [ebp - 0x40]
call fcn.00477fc3
mov ecx, edx
jmp 0x50e669
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ebp + 0x14]
add eax, esi
push 0
pop ebx
adc ebx, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
cmp ebx, ecx
jb 0x50e69e
ja 0x50e686
cmp eax, edx
jbe 0x50e69e
mov esi, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x48]
call fcn.00477f35
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp + 0xc]
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], ebx
mov ecx, dword [edi + 0x78]
cmp ebx, dword [edi + 0x7c]
jb 0x50e6c4
ja 0x50e6ac
cmp eax, ecx
jbe 0x50e6c4
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], ebx
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x7c]
mov ecx, esi
sub ecx, eax
add ecx, dword [ebp + 0x14]
call fcn.0050d0d5
mov eax, dword [edi + 8]
cmp byte [eax + 0x114], 0
push dword [ebp + 0x14]
push dword [ebp + 8]
je 0x50e797
lea eax, [ebp - 0x58]
push eax
call fcn.004e827b
xor edi, edi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x54], edi
je 0x50e6f4
mov edi, dword [ebp - 0x50]
sub edi, dword [ebp - 0x54]
mov ebx, dword [ebp + 0x10]
push ebx
push esi
lea eax, [ebp - 0x58]
call fcn.00430316
mov ecx, eax
mov eax, edi
call fcn.0046181b
pop ecx
pop ecx
lea eax, [ebp - 0x58]
call fcn.00430316
push dword [ebp + 0x14]
mov edi, dword [ebp - 0x18]
push eax
push ebx
push esi
mov dword [ebp + 8], eax
call fcn.00478634
cmp byte [ebp + 0x18], 0
mov byte [ebp - 0x11], al
jne 0x50e739
mov eax, dword [0x8b684c]
cmp byte [eax + 0x2a], 0
je 0x50e776
and dword [ebp + 0x18], 0
cmp dword [ebp + 0x18], 3
jge 0x50e772
cmp byte [ebp - 0x11], 0
je 0x50e776
push 1
push dword [ebp + 0x14]
push dword [ebp + 8]
push ebx
push esi
push edi
call fcn.00478072
test al, al
jne 0x50e776
push dword [ebp + 0x14]
push dword [ebp + 8]
push ebx
push esi
call fcn.00478634
inc dword [ebp + 0x18]
mov byte [ebp - 0x11], al
jmp 0x50e73d
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 0
je 0x50e78f
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x54]
push dword [ebp - 0x54]
call fcn.0045e6eb
pop ecx
mov bl, byte [ebp - 0x11]
jmp 0x50e587
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x18]
push esi
call fcn.00478634
cmp byte [ebp + 0x18], 0
mov byte [ebp - 0x11], al
jne 0x50e7b7
mov eax, dword [0x8b684c]
cmp byte [eax + 0x2a], 0
je 0x50e78f
xor ebx, ebx
cmp ebx, 3
jge 0x50e7ef
cmp byte [ebp - 0x11], 0
je 0x50e78f
push 1
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x10]
push esi
push edi
call fcn.00478072
test al, al
jne 0x50e78f
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x10]
push esi
call fcn.00478634
mov byte [ebp - 0x11], al
inc ebx
jmp 0x50e7b9
mov byte [ebp - 0x11], 0
jmp 0x50e78f