Function at 0x49fc4f
Capabilities:
Check if file exists

Disassembly:
push 0x8a4
mov eax, 0x5a20f6
call fcn.004fed86
mov edi, ecx
mov dword [ebp - 0x868], edi
mov eax, 0x623808
lea esi, [ebp - 0x864]
mov dword [ebp - 4], 1
call fcn.004983b0
mov eax, dword [ebp - 0x868]
lea esi, [ebp - 0x870]
mov byte [ebp - 4], 2
xor ebx, ebx
xor edi, edi
call fcn.0041a480
mov byte [ebp - 4], 3
cmp dword [ebp - 0x86c], ebx
je 0x49fcaf
call fcn.0049f8cf
mov edi, eax
mov dword [ebp - 0x86c], ebx
lea eax, [ebp - 0x870]
push eax
mov byte [ebp - 4], 2
call fcn.0041a4d0
cmp edi, ebx
jne 0x49fcf2
mov byte [ebp - 4], 1
cmp dword [ebp - 0x864], ebx
je 0x49fcda
lea ebx, [ebp - 0x864]
call fcn.00498440
lea ecx, [ebp + 8]
call fcn.00406760
lea ecx, [ebp + 0xc]
call fcn.00406760
xor eax, eax
call fcn.004fedd0
ret
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004fe380
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push 0x208
push eax
call fcn.00407bf0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49fcc3
mov edi, dword [ebp + 0xc]
call fcn.0049bd8c
lea esi, [ebp + 0xc]
call fcn.0049fa13
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049f860
mov esi, eax
mov dword [ebp - 0x874], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x49fcc7
cmp dword [ebp - 0x864], ebx
je 0x49fd86
lea ebx, [ebp - 0x864]
call fcn.00498440
xor ebx, ebx
mov dword [ebp - 0x890], esi
mov dword [ebp - 0x88c], ebx
push 0x644
lea eax, [ebp - 0x860]
push ebx
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x620], 0x648
call fcn.004fe380
add esp, 0xc
mov dword [ebp - 0x21c], ebx
mov edi, dword [ebp - 0x868]
mov eax, 0x62380c
lea esi, [ebp - 0x864]
call fcn.004983b0
mov byte [ebp - 4], 5
push dword [0x65e134]
mov ecx, edi
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [0x65e130]
mov eax, dword [eax + 0x34]
cmp eax, ebx
je 0x49fe03
lea ecx, [ebp - 0x860]
push ecx
push dword [ebp - 0x874]
call eax
pop ecx
pop ecx
cmp al, bl
jne 0x49fe1e
mov byte [ebp - 4], 4
cmp dword [ebp - 0x864], ebx
je 0x49fdbb
lea ebx, [ebp - 0x864]
call fcn.00498440
xor ebx, ebx
jmp 0x49fdbb
mov eax, dword [ebp - 0x834]
xor edi, edi
inc edi
cmp eax, edi
je 0x49ff6a
jbe 0x49fe03
cmp eax, 4
jbe 0x49fe40
cmp eax, 5
je 0x49fe7f
cmp eax, 9
jne 0x49fe03
mov byte [ebp - 4], 4
cmp dword [ebp - 0x864], ebx
je 0x49fe59
lea ebx, [ebp - 0x864]
call fcn.00498440
xor ebx, ebx
lea esi, [ebp - 0x890]
mov byte [ebp - 4], 1
call fcn.0049f884
lea ecx, [ebp + 8]
call fcn.00406760
lea ecx, [ebp + 0xc]
call fcn.00406760
mov eax, ebx
jmp 0x49fcec
mov esi, dword [ebp - 0x85c]
mov edx, dword [ebp - 0x860]
cmp esi, ebx
ja 0x49fe97
cmp edx, ebx
jbe 0x49fe03
mov ecx, dword [ebp - 0x858]
mov eax, dword [ebp - 0x854]
mov dword [ebp - 0x884], eax
mov dword [ebp - 0x8b0], ecx
mov ecx, bind
and eax, ecx
mov dword [ebp - 0x8ac], eax
fild qword [ebp - 0x8b0]
mov eax, bind
and dword [ebp - 0x884], eax
mov dword [ebp - 0x888], ebx
fild qword [ebp - 0x888]
mov edi, esi
mov dword [ebp - 0x87c], edi
and dword [ebp - 0x87c], ecx
fchs
mov dword [ebp - 0x880], edx
faddp st(1)
mov dword [ebp - 0x86c], edi
fld qword [0x6005b8]
and dword [ebp - 0x86c], eax
mov dword [ebp - 0x870], ebx
fmul st(1), st(0)
fild qword [ebp - 0x880]
fild qword [ebp - 0x870]
fchs
faddp st(1)
fdivp st(2)
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x49ff2a
fstp st(1)
jmp 0x49ff2c
fstp st(0)
cmp dword [ebp + 0x10], ebx
je 0x49ff63
mov eax, dword [ebp - 0x83c]
fstp qword [ebp - 0x8a8]
mov dword [ebp - 0x8a0], eax
lea eax, [ebp - 0x8a8]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x898], edx
mov dword [ebp - 0x894], esi
call dword [ebp + 0x10]
pop ecx
pop ecx
jmp 0x49fe03
fstp st(0)
jmp 0x49fe03
cmp dword [ebp + 0x10], ebx
je 0x49ffae
mov eax, dword [ebp - 0x83c]
fld qword [0x6005b8]
mov dword [ebp - 0x8a0], eax
fstp qword [ebp - 0x8a8]
mov eax, dword [ebp - 0x860]
mov dword [ebp - 0x898], eax
mov eax, dword [ebp - 0x85c]
mov dword [ebp - 0x894], eax
lea eax, [ebp - 0x8a8]
push eax
push dword [ebp + 0x14]
call dword [ebp + 0x10]
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x874], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x868], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
call fcn.0049fbc6
pop ecx
pop ecx
cmp eax, ebx
je 0x49fff9
mov dword [ebp - 0x88c], edi
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x874], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
call fcn.0049fb55
mov byte [ebp - 4], 4
pop ecx
cmp dword [ebp - 0x864], ebx
je 0x4a002f
lea ebx, [ebp - 0x864]
call fcn.00498440
xor ebx, ebx
inc ebx
jmp 0x49fe59