Function at 0x4ecbf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7c94
mov eax, dword fs:[0]
push eax
mov eax, 0x10d0
call fcn.00552d20
mov eax, dword [0x62cf50]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x109c], eax
cmp dword [ebp - 0x109c], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10b8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10a8], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x10a0], edi
mov dword [ebp - 0x10ac], eax
mov dword [ebp - 0x1098], ecx
mov dword [ebp - 0x10c4], ebx
mov dword [ebp - 0x10bc], 0
je 0x4ecc89
mov edi, dword [ebp - 0x109c]
mov byte [edi], 0
mov edi, dword [ebp - 0x10a0]
test ebx, ebx
je 0x4ecc90
mov byte [ebx], 0
test edx, edx
je 0x4ecc97
mov byte [edx], 0
mov edx, dword [ebp - 0x10b8]
test edx, edx
je 0x4ecca4
mov byte [edx], 0
test eax, eax
je 0x4eccbe
mov dword [eax + 0x10], 0
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4eccb9
mov edx, dword [eax]
xor eax, eax
mov word [edx], ax
test esi, esi
je 0x4eccd8
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4eccd3
mov eax, dword [esi]
xor edx, edx
mov word [eax], dx
test ecx, ecx
je 0x4eccf2
mov dword [ecx + 0x10], 0
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x4ecced
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax], cx
cmp dword [edi + 0x10], 0
je 0x4ed3cc
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4ecd06
mov eax, dword [edi]
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
cmp dword [edi + 0x14], 8
mov ebx, eax
mov dword [ebp - 0x10a4], ebx
mov ecx, edi
jb 0x4ecd21
mov ecx, dword [edi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
jne 0x4ecd63
test ebx, ebx
jne 0x4ecd63
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4ecd3a
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ed3cc
push 7
push str.file:__
push 0
mov ecx, edi
call fcn.004195a0
mov dword [ebp - 0x10a4], 1
push esi
push edi
call fcn.004f03c0
mov ebx, eax
add esp, 8
mov dword [ebp - 0x10b4], ebx
cmp ebx, 1
je 0x4ecd88
cmp ebx, 4
je 0x4ecd88
cmp ebx, 2
jne 0x4ed3cc
cmp dword [ebp - 0x10a4], 0
mov esi, 2
je 0x4ed0a2
push 0x1048
lea eax, [ebp - 0x1058]
push 0
push eax
call fcn.0056aed0
add esp, 0xc
mov dword [ebp - 0x1074], 0x824
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4ecdc4
mov eax, dword [edi]
push 0
lea ecx, [ebp - 0x1074]
push ecx
lea ecx, [ebp - 0x1058]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jne 0x4ed3cc
cmp dword [ebp - 0x1074], eax
je 0x4ed3cc
push str.file:__
mov ecx, edi
call fcn.0040bef0
lea eax, [ebp - 0x1058]
mov ecx, edi
push eax
call fcn.00439a10
mov eax, dword [edi + 0x10]
xor ecx, ecx
push 0x635558
lea eax, [eax + eax*2]
mov dword [ebp - 0x1090], eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e564
mov esi, eax
add esp, 8
mov dword [ebp - 0x10c0], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4ed1ce
mov ecx, dword [ebp - 0x1090]
add ecx, ecx
push ecx
push 0
push esi
call fcn.0056aed0
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4ece63
mov eax, dword [edi]
push 0x20001000
lea ecx, [ebp - 0x1090]
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
test eax, eax
jne 0x4ed1ce
push esi
mov ecx, edi
call fcn.0040bef0
lea eax, [ebp - 0x1058]
mov byte [ebp - 0x1091], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
movzx ecx, byte [ebp - 0x1091]
test eax, eax
mov eax, dword [ebp - 0x10c4]
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x10b0], ecx
test eax, eax
je 0x4ecebe
mov byte [eax], cl
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x1070]
call fcn.004102c0
push 0
lea eax, [ebp - 0x1070]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00430510
add esp, 0xc
test al, al
je 0x4ed1bf
mov edx, dword [ebp - 0x10a8]
test edx, edx
je 0x4ecf32
mov eax, dword [ebp - 0x10b0]
lea ecx, [ebp - 0x1070]
cmp dword [ebp - 0x105c], 8
push 0
cmovae ecx, dword [ebp - 0x1070]
push 0
movzx eax, al
push eax
lea eax, [ebp - 0x1070]
push eax
push ecx
mov ecx, edx
call fcn.004a71a0
test al, al
je 0x4ed1bf
cmp dword [ebp - 0x1060], 0
jbe 0x4ed1bf
mov eax, dword [ebp - 0x109c]
test eax, eax
je 0x4ecf4c
mov byte [eax], 1
mov ecx, dword [ebp - 0x10ac]
test ecx, ecx
je 0x4ecf62
lea eax, [ebp - 0x1070]
push eax
call fcn.0042f8d0
cmp dword [ebp - 0x105c], 8
lea eax, [ebp - 0x1070]
cmovae eax, dword [ebp - 0x1070]
push eax
lea eax, [ebp - 0x108c]
push eax
call fcn.004aa2c0
add esp, 8
cmp dword [ebp - 0x107c], 0
mov byte [ebp - 4], 2
je 0x4ed056
mov ecx, dword [ebp - 0x1098]
test ecx, ecx
je 0x4ecfad
lea eax, [ebp - 0x108c]
push eax
call fcn.0042f8d0
cmp dword [ebp - 0x1078], 8
lea eax, [ebp - 0x108c]
push 1
cmovae eax, dword [ebp - 0x108c]
push eax
call fcn.004efb90
add esp, 8
test al, al
jne 0x4ed05f
lea eax, [ebp - 0x108c]
push str..pdf
push eax
call fcn.0042e1d0
add esp, 8
test al, al
jne 0x4ed034
lea eax, [ebp - 0x108c]
push str..fdf
push eax
call fcn.0042e1d0
add esp, 8
test al, al
jne 0x4ed034
lea eax, [ebp - 0x108c]
push str..xfdf
push eax
call fcn.0042e1d0
add esp, 8
test al, al
jne 0x4ed034
lea eax, [ebp - 0x108c]
push str..xdp
push eax
call fcn.0042e1d0
add esp, 8
test al, al
je 0x4ed07c
cmp ebx, 2
jne 0x4ed07c
lea ecx, [ebp - 0x108c]
mov bl, 1
call fcn.0040a580
lea ecx, [ebp - 0x1070]
call fcn.0040a580
jmp 0x4ed1d0
cmp byte [ebp - 0x10b0], 0
jne 0x4ed07c
lea ecx, [ebp - 0x108c]
xor bl, bl
call fcn.0040a580
lea ecx, [ebp - 0x1070]
call fcn.0040a580
jmp 0x4ed1d0
lea ecx, [ebp - 0x108c]
call fcn.0040a580
lea ecx, [ebp - 0x1070]
call fcn.0040a580
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041e935
add esp, 4
cmp ebx, 2
jne 0x4ed369
call fcn.004ef550
cmp byte [0x631c68], 0
mov dword [ebp - 0x10a8], eax
jne 0x4ed1a6
mov ecx, eax
call fcn.004ef6f0
push 0
lea eax, [ebp - 0x1070]
push edi
push eax
call fcn.0043b9a0
mov ecx, eax
call fcn.004ee090
cmp dword [ebp - 0x105c], 8
lea eax, [ebp - 0x1070]
mov edx, dword [ebp - 0x1070]
lea ecx, [ebp - 0x1070]
cmovae eax, edx
mov dword [ebp - 4], 3
mov dword [ebp - 0x1098], eax
lea ebx, [ebp - 0x1070]
mov eax, dword [ebp - 0x1060]
cmovae ecx, edx
cmovae ebx, edx
lea eax, [ecx + eax*2]
cmp ebx, eax
je 0x4ed14d
mov esi, dword [ebp - 0x1098]
mov edi, eax
sub esi, ebx
nop dword [eax]
movzx eax, word [ebx]
push eax
call fcn.0040cdc0
mov word [ebx + esi], ax
add esp, 4
add ebx, 2
cmp ebx, edi
jne 0x4ed130
mov edi, dword [ebp - 0x10a0]
mov ebx, dword [ebp - 0x10a8]
lea eax, [ebp - 0x1070]
push eax
lea eax, [ebp - 0x10c0]
mov esi, dword [ebx + 0x2c]
push esi
push dword [ebx + 0x28]
push eax
call fcn.00432760
add esp, 0x10
cmp dword [eax], esi
je 0x4ed1e4
mov eax, dword [ebp - 0x105c]
mov dword [ebp - 4], 4
cmp eax, 8
jb 0x4ed199
inc eax
lea ecx, [ebp - 0x1070]
push eax
push dword [ebp - 0x1070]
call fcn.0040a5e0
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x10b4]
cmp dword [ebp - 0x10a4], 0
jne 0x4ed21d
cmp ebx, 2
jne 0x4ed3cc
mov al, 1
jmp 0x4ed3ce
lea ecx, [ebp - 0x1070]
xor bl, bl
call fcn.0040a580
jmp 0x4ed1d0
xor bl, bl
test esi, esi
je 0x4ed1dd
push esi
call fcn.0041e935
add esp, 4
mov al, bl
jmp 0x4ed3ce
cmp dword [ebp - 0x1060], 0
jne 0x4ed311
mov eax, dword [ebp - 0x105c]
mov dword [ebp - 4], 5
cmp eax, 8
jb 0x4ed216
inc eax
lea ecx, [ebp - 0x1070]
push eax
push dword [ebp - 0x1070]
call fcn.0040a5e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x634a80]
test ecx, ecx
je 0x4ed3cc
push 4
lea eax, [ebp - 0x108c]
push eax
call fcn.004a6626
mov eax, dword [ebp - 0x107c]
xor ecx, ecx
mov ebx, dword [edi + 0x10]
inc eax
add ebx, eax
mov dword [ebp - 4], 7
mov eax, ebx
mov edx, 2
mul edx
push 0x635558
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e564
mov esi, eax
add esp, 8
mov dword [ebp - 0x10c0], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x4ed3ae
lea ecx, [ebx + ebx]
push ecx
push 0
push esi
call fcn.0056aed0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4ed297
mov edi, dword [edi]
cmp dword [ebp - 0x1078], 8
lea eax, [ebp - 0x108c]
push edi
cmovae eax, dword [ebp - 0x108c]
push eax
push ebx
push esi
call fcn.00410850
add esp, 0x10
test eax, eax
jne 0x4ed3ae
mov eax, dword [ebp - 0x10b8]
test eax, eax
je 0x4ed2cc
mov byte [eax], 1
mov ecx, dword [0x634a80]
test ecx, ecx
je 0x4ed380
push 3
lea eax, [ebp - 0x10dc]
push eax
call fcn.004a6626
mov edi, eax
mov dword [ebp - 0x10bc], 1
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 9
jb 0x4ed300
mov edi, dword [edi]
mov ecx, dword [0x634a80]
test ecx, ecx
je 0x4ed385
call fcn.004e08a0
jmp 0x4ed387
mov esi, dword [ebx + 0x20]
lea eax, [ebp - 0x1070]
push eax
push esi
push dword [ebx + 0x1c]
lea eax, [ebp - 0x1098]
push eax
call fcn.00432760
add esp, 0x10
mov ebx, dword [eax]
mov eax, dword [ebp - 0x105c]
mov dword [ebp - 4], 6
cmp eax, 8
jb 0x4ed355
inc eax
lea ecx, [ebp - 0x1070]
push eax
push dword [ebp - 0x1070]
call fcn.0040a5e0
mov dword [ebp - 4], 0xffffffff
cmp ebx, esi
je 0x4ed1a0
jmp 0x4ed21d
cmp ebx, 1
je 0x4ed21d
cmp ebx, 4
je 0x4ed21d
jmp 0x4ed1a6
mov edi, 0x5b6ea8
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 0x4ed3b0
lea ecx, [ebp - 0x10dc]
call fcn.0040a580
jmp 0x4ed3b0
xor bl, bl
test esi, esi
je 0x4ed3bd
push esi
call fcn.0041e935
add esp, 4
lea ecx, [ebp - 0x108c]
call fcn.0040a580
mov al, bl
jmp 0x4ed3ce
xor al, al
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.004016cd
mov esp, ebp
pop ebp
ret