Function at 0x49cbe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b859
mov eax, dword fs:[0]
push eax
mov eax, 0x10e0
call fcn.004df410
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x28]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x10b4], eax
cmp dword [ebp - 0x10b4], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10c4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10d0], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x10c8], eax
mov dword [ebp - 0x10b8], ecx
mov dword [ebp - 0x10cc], ebx
mov dword [ebp - 0x10bc], 0
je 0x49cc73
mov ecx, dword [ebp - 0x10b4]
mov byte [ecx], 0
mov ecx, dword [ebp - 0x10b8]
test ebx, ebx
je 0x49cc7a
mov byte [ebx], 0
test edx, edx
je 0x49cc81
mov byte [edx], 0
mov edx, dword [ebp - 0x10c4]
test edx, edx
je 0x49cc8e
mov byte [edx], 0
test eax, eax
je 0x49cca6
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x49cca1
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
test esi, esi
je 0x49ccc2
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x49ccbb
mov eax, dword [esi]
jmp 0x49ccbd
mov eax, esi
xor edx, edx
mov word [eax], dx
test ecx, ecx
je 0x49ccda
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x49ccd5
mov ecx, dword [ecx]
xor eax, eax
mov word [ecx], ax
cmp dword [edi + 0x10], 0
jne 0x49cce7
xor al, al
jmp 0x49d239
cmp dword [edi + 0x14], 8
jb 0x49ccf1
mov eax, dword [edi]
jmp 0x49ccf3
mov eax, edi
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
cmp dword [edi + 0x14], 8
mov ebx, eax
mov dword [ebp - 0x10b0], ebx
jb 0x49cd0e
mov ecx, dword [edi]
jmp 0x49cd10
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
jne 0x49cd4e
test ebx, ebx
jne 0x49cd4e
cmp dword [edi + 0x14], 8
jb 0x49cd29
mov eax, dword [edi]
jmp 0x49cd2b
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49cce0
push str.file:__
push 0
mov ecx, edi
call fcn.00420bd0
mov dword [ebp - 0x10b0], 1
push esi
push edi
call fcn.0049e5c0
mov ebx, eax
add esp, 8
cmp ebx, 1
je 0x49cd6d
cmp ebx, 4
je 0x49cd6d
cmp ebx, 2
jne 0x49cce0
mov eax, dword [ebp - 0x10b0]
mov esi, 2
test eax, eax
je 0x49d0c3
xor eax, eax
push 0x1046
push eax
mov word [ebp - 0x1058], ax
lea eax, [ebp - 0x1056]
push eax
call fcn.004dead0
add esp, 0xc
mov dword [ebp - 0x105c], 0x824
cmp dword [edi + 0x14], 8
jb 0x49cdb2
mov eax, dword [edi]
jmp 0x49cdb4
mov eax, edi
push 0
lea ecx, [ebp - 0x105c]
push ecx
lea ecx, [ebp - 0x1058]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jne 0x49cce0
cmp dword [ebp - 0x105c], eax
je 0x49cce0
push str.file:__
mov ecx, edi
call fcn.00412520
lea eax, [ebp - 0x1058]
mov ecx, edi
push eax
call fcn.0042b180
mov eax, dword [edi + 0x10]
xor ecx, ecx
push 0x55bdb7
lea eax, [eax + eax*2]
mov dword [ebp - 0x10a8], eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041941d
mov esi, eax
add esp, 8
mov dword [ebp - 0x10d4], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x49d0fc
mov eax, dword [ebp - 0x10a8]
add eax, eax
push eax
push 0
push esi
call fcn.004dead0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x49ce53
mov eax, dword [edi]
jmp 0x49ce55
mov eax, edi
push 0x20001000
lea ecx, [ebp - 0x10a8]
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
test eax, eax
jne 0x49d0fc
push esi
mov ecx, edi
call fcn.00412520
lea eax, [ebp - 0x1058]
mov byte [ebp - 0x10a9], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
movzx ecx, byte [ebp - 0x10a9]
test eax, eax
mov eax, dword [ebp - 0x10cc]
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x10c0], ecx
test eax, eax
je 0x49ceb0
mov byte [eax], cl
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1074]
call fcn.00407370
push 0
lea eax, [ebp - 0x1074]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0041a3c0
add esp, 0xc
test al, al
je 0x49d0e1
mov edx, dword [ebp - 0x10d0]
test edx, edx
je 0x49cf26
cmp dword [ebp - 0x1060], 8
lea ecx, [ebp - 0x1074]
push 0
cmovae ecx, dword [ebp - 0x1074]
xor eax, eax
cmp byte [ebp - 0x10c0], al
push 0
setne al
push eax
lea eax, [ebp - 0x1074]
push eax
push ecx
mov ecx, edx
call fcn.00467ee0
test al, al
je 0x49d0e1
cmp dword [ebp - 0x1064], 0
jbe 0x49d0e1
mov eax, dword [ebp - 0x10b4]
test eax, eax
je 0x49cf40
mov byte [eax], 1
mov ecx, dword [ebp - 0x10c8]
test ecx, ecx
je 0x49cf5e
lea eax, [ebp - 0x1074]
cmp ecx, eax
je 0x49cf5e
push 0xffffffffffffffff
push 0
push eax
call fcn.00407980
cmp dword [ebp - 0x1060], 8
lea eax, [ebp - 0x1074]
cmovae eax, dword [ebp - 0x1074]
push eax
lea eax, [ebp - 0x108c]
push eax
call fcn.00469e80
add esp, 8
cmp dword [ebp - 0x107c], 0
mov byte [ebp - 4], 2
je 0x49d063
mov ecx, dword [ebp - 0x10b8]
test ecx, ecx
je 0x49cfb1
lea eax, [ebp - 0x108c]
cmp ecx, eax
je 0x49cfb1
push 0xffffffffffffffff
push 0
push eax
call fcn.00407980
cmp dword [ebp - 0x1078], 8
lea eax, [ebp - 0x108c]
push 1
cmovae eax, dword [ebp - 0x108c]
push eax
call fcn.0049de10
add esp, 8
test al, al
jne 0x49d06c
lea eax, [ebp - 0x108c]
push str..pdf
push eax
call fcn.00420a90
add esp, 8
test al, al
jne 0x49d038
lea eax, [ebp - 0x108c]
push str..fdf
push eax
call fcn.00420a90
add esp, 8
test al, al
jne 0x49d038
lea eax, [ebp - 0x108c]
push str..xfdf
push eax
call fcn.00420a90
add esp, 8
test al, al
jne 0x49d038
lea eax, [ebp - 0x108c]
push str..xdp
push eax
call fcn.00420a90
add esp, 8
test al, al
je 0x49d092
cmp ebx, 2
jne 0x49d092
lea ecx, [ebp - 0x108c]
mov bl, 1
call fcn.00408450
lea ecx, [ebp - 0x1074]
call fcn.00408450
push esi
call fcn.00419db5
add esp, 4
jmp 0x49d237
cmp byte [ebp - 0x10c0], 0
jne 0x49d092
lea ecx, [ebp - 0x108c]
xor bl, bl
call fcn.00408450
lea ecx, [ebp - 0x1074]
call fcn.00408450
push esi
call fcn.00419db5
add esp, 4
jmp 0x49d237
lea ecx, [ebp - 0x108c]
call fcn.00408450
lea ecx, [ebp - 0x1074]
call fcn.00408450
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.00419db5
mov eax, dword [ebp - 0x10b0]
add esp, 4
mov esi, 2
cmp ebx, 1
je 0x49d10c
cmp ebx, 4
je 0x49d10c
test eax, eax
jne 0x49d10c
cmp ebx, 2
jne 0x49cce0
mov al, 1
jmp 0x49d239
lea ecx, [ebp - 0x1074]
xor bl, bl
call fcn.00408450
push esi
call fcn.00419db5
add esp, 4
jmp 0x49d237
push esi
xor bl, bl
call fcn.00419db5
add esp, 4
jmp 0x49d237
mov ecx, dword [0x55b408]
test ecx, ecx
je 0x49cce0
push 4
lea eax, [ebp - 0x10a4]
push eax
call fcn.0046730b
mov eax, dword [ebp - 0x1094]
xor ecx, ecx
mov ebx, dword [edi + 0x10]
inc eax
add ebx, eax
mov dword [ebp - 4], 3
mov eax, ebx
mul esi
push 0x55bdb7
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041941d
mov esi, eax
add esp, 8
mov dword [ebp - 0x10d4], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x49d221
lea eax, [ebx + ebx]
push eax
push 0
push esi
call fcn.004dead0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x49d181
mov edi, dword [edi]
cmp dword [ebp - 0x1090], 8
lea eax, [ebp - 0x10a4]
push edi
cmovae eax, dword [ebp - 0x10a4]
push eax
push ebx
push esi
call fcn.00409eb0
add esp, 0x10
test eax, eax
jne 0x49d221
mov eax, dword [ebp - 0x10c4]
test eax, eax
je 0x49d1b2
mov byte [eax], 1
mov ecx, dword [0x55b408]
test ecx, ecx
je 0x49d1f3
push 3
lea eax, [ebp - 0x10ec]
push eax
call fcn.0046730b
mov edi, eax
mov dword [ebp - 0x10bc], 1
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 5
jb 0x49d1e2
mov edi, dword [edi]
mov ecx, dword [0x55b408]
test ecx, ecx
je 0x49d1f8
call fcn.00454f10
jmp 0x49d1fa
mov edi, 0x511a98
xor eax, eax
push 0x34
push edi
push esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete bl
test byte [ebp - 0x10bc], 1
je 0x49d223
lea ecx, [ebp - 0x10ec]
call fcn.00408450
jmp 0x49d223
xor bl, bl
push esi
call fcn.00419db5
add esp, 4
lea ecx, [ebp - 0x10a4]
call fcn.00408450
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret