Function at 0x49bd60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509697
mov eax, dword fs:[0]
push eax
mov eax, 0x10d4
call fcn.004e4810
mov eax, dword [0x553948]
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 ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10c0], ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x10b4], ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x10d0], ebx
mov ebx, dword [ebp + 0x28]
mov dword [ebp - 0x10e0], edx
mov dword [ebp - 0x10d4], ecx
mov dword [ebp - 0x10c8], edi
mov dword [ebp - 0x10dc], ebx
mov dword [ebp - 0x10b8], 0
test edx, edx
je 0x49bde8
mov byte [edx], 0
xor edx, edx
cmp ebx, edx
je 0x49bdf0
mov byte [ebx], dl
cmp eax, edx
je 0x49bdf6
mov byte [eax], dl
cmp ecx, edx
je 0x49bdfc
mov byte [ecx], dl
mov ecx, 8
cmp edi, edx
je 0x49be18
mov dword [edi + 0x10], edx
cmp dword [edi + 0x14], ecx
jb 0x49be11
mov eax, dword [edi]
jmp 0x49be13
mov eax, edi
xor edi, edi
mov word [eax], di
mov ebx, dword [ebp - 0x10b4]
cmp ebx, edx
je 0x49be35
mov dword [ebx + 0x10], edx
cmp dword [ebx + 0x14], ecx
jb 0x49be2e
mov eax, dword [ebx]
jmp 0x49be30
mov eax, ebx
xor edi, edi
mov word [eax], di
mov eax, dword [ebp - 0x10d0]
cmp eax, edx
je 0x49be4e
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], ecx
jb 0x49be49
mov eax, dword [eax]
xor edi, edi
mov word [eax], di
cmp dword [esi + 0x10], edx
je 0x49bfaa
cmp dword [esi + 0x14], ecx
jb 0x49be60
mov eax, dword [esi]
jmp 0x49be62
mov eax, esi
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
cmp dword [esi + 0x14], 8
mov edi, eax
mov dword [ebp - 0x10cc], edi
jb 0x49be7d
mov eax, dword [esi]
jmp 0x49be7f
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
jne 0x49bec4
test edi, edi
jne 0x49bec4
cmp dword [esi + 0x14], 8
jb 0x49be98
mov eax, dword [esi]
jmp 0x49be9a
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49bfaa
push 7
push str.file:__
push 0
mov ecx, esi
call fcn.0041d010
mov edi, 1
mov dword [ebp - 0x10cc], edi
push ebx
push esi
call fcn.0049ac70
add esp, 8
mov dword [ebp - 0x10b4], eax
cmp eax, 1
je 0x49bee7
cmp eax, 4
je 0x49bee7
cmp eax, 2
jne 0x49bfaa
test edi, edi
je 0x49c224
xor eax, eax
push 0x1046
push eax
lea ecx, [ebp - 0x1056]
push ecx
mov word [ebp - 0x1058], ax
call fcn.004e41d0
mov ebx, 8
add esp, 0xc
mov dword [ebp - 0x10bc], 0x824
cmp dword [esi + 0x14], ebx
jb 0x49bf25
mov eax, dword [esi]
jmp 0x49bf27
mov eax, esi
push 0
lea edx, [ebp - 0x10bc]
push edx
lea ecx, [ebp - 0x1058]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jne 0x49bfaa
cmp dword [ebp - 0x10bc], eax
je 0x49bfaa
push str.file:__
mov ecx, esi
call fcn.004187e0
lea edx, [ebp - 0x1058]
push edx
mov ecx, esi
call fcn.0042bf20
mov eax, dword [esi + 0x10]
lea eax, [eax + eax*2]
xor ecx, ecx
mov dword [ebp - 0x10c4], eax
mov edx, 2
mul edx
seto cl
push 0x556c48
neg ecx
or ecx, eax
push ecx
call fcn.0041880c
mov edi, eax
add esp, 8
mov dword [ebp - 0x10d8], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x49bfb1
push eax
call fcn.00418a67
add esp, 4
xor al, al
jmp 0x49c392
mov eax, dword [ebp - 0x10c4]
lea ecx, [eax + eax]
push ecx
push 0
push edi
call fcn.004e41d0
add esp, 0xc
cmp dword [esi + 0x14], ebx
jb 0x49bfcf
mov eax, dword [esi]
jmp 0x49bfd1
mov eax, esi
push 0x20001000
lea edx, [ebp - 0x10c4]
push edx
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
push edi
test eax, eax
jne 0x49bfa2
mov ecx, esi
call fcn.004187e0
lea eax, [ebp - 0x1058]
push eax
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x49c006
mov bl, 1
mov eax, dword [ebp - 0x10dc]
test eax, eax
je 0x49c012
mov byte [eax], bl
lea ecx, [ebp - 0x1058]
push ecx
lea ecx, [ebp - 0x1090]
call fcn.00408ac0
push 0
lea edx, [ebp - 0x1090]
push 0
push edx
mov byte [ebp - 4], 1
call fcn.004172b0
add esp, 0xc
test al, al
je 0x49c140
cmp dword [ebp - 0x10c0], 0
je 0x49c088
cmp dword [ebp - 0x107c], 8
mov eax, dword [ebp - 0x1090]
jae 0x49c061
lea eax, [ebp - 0x1090]
xor ecx, ecx
test bl, bl
setne cl
push 0
push 0
lea edx, [ebp - 0x1090]
push ecx
mov ecx, dword [ebp - 0x10c0]
push edx
push eax
call fcn.00467180
test al, al
je 0x49c140
cmp dword [ebp - 0x1080], 0
jbe 0x49c140
mov eax, dword [ebp - 0x10e0]
test eax, eax
je 0x49c0a2
mov byte [eax], 1
cmp dword [ebp - 0x10c8], 0
je 0x49c0c1
mov ecx, dword [ebp - 0x10c8]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1090]
push eax
call fcn.00406a40
cmp dword [ebp - 0x107c], 8
mov eax, dword [ebp - 0x1090]
jae 0x49c0d6
lea eax, [ebp - 0x1090]
push eax
lea ecx, [ebp - 0x1074]
push ecx
call fcn.00465950
add esp, 8
cmp dword [ebp - 0x1064], 0
mov byte [ebp - 4], 2
je 0x49c1ea
mov ecx, dword [ebp - 0x10d0]
test ecx, ecx
je 0x49c111
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x1074]
push edx
call fcn.00406a40
cmp dword [ebp - 0x1060], 8
mov eax, dword [ebp - 0x1074]
jae 0x49c126
lea eax, [ebp - 0x1074]
push 1
push eax
call fcn.0049a4a0
add esp, 8
test al, al
je 0x49c15b
lea ecx, [ebp - 0x1074]
call fcn.0040a440
lea ecx, [ebp - 0x1090]
call fcn.0040a440
push edi
call fcn.00418a67
add esp, 4
xor al, al
jmp 0x49c392
lea eax, [ebp - 0x1074]
push str..pdf
push eax
call fcn.0041cea0
add esp, 8
test al, al
jne 0x49c1bb
lea ecx, [ebp - 0x1074]
push str..fdf
push ecx
call fcn.0041cea0
add esp, 8
test al, al
jne 0x49c1bb
lea edx, [ebp - 0x1074]
push str..xfdf
push edx
call fcn.0041cea0
add esp, 8
test al, al
jne 0x49c1bb
lea eax, [ebp - 0x1074]
push str..xdp
push eax
call fcn.0041cea0
add esp, 8
test al, al
je 0x49c1f2
cmp dword [ebp - 0x10b4], 2
jne 0x49c1f2
lea ecx, [ebp - 0x1074]
call fcn.0040a440
lea ecx, [ebp - 0x1090]
call fcn.0040a440
push edi
call fcn.00418a67
add esp, 4
mov al, 1
jmp 0x49c392
test bl, bl
je 0x49c135
lea ecx, [ebp - 0x1074]
call fcn.0040a440
lea ecx, [ebp - 0x1090]
call fcn.0040a440
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00418a67
mov edi, dword [ebp - 0x10cc]
mov eax, dword [ebp - 0x10b4]
add esp, 4
cmp eax, 1
je 0x49c242
cmp eax, 4
je 0x49c242
test edi, edi
jne 0x49c242
cmp eax, 2
jne 0x49bfaa
mov al, 1
jmp 0x49c392
mov ecx, dword [0x5563e8]
test ecx, ecx
je 0x49bfaa
push 4
lea edx, [ebp - 0x1074]
push edx
call fcn.00461fb8
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1064]
lea edi, [ecx + eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
push 0x556c48
mov dword [ebp - 4], 3
neg ecx
or ecx, eax
push ecx
call fcn.0041880c
mov ebx, eax
add esp, 8
mov dword [ebp - 0x10d8], ebx
mov byte [ebp - 4], 4
test ebx, ebx
jne 0x49c2bd
push eax
call fcn.00418a67
add esp, 4
lea ecx, [ebp - 0x1074]
call fcn.0040a440
xor al, al
jmp 0x49c392
lea eax, [edi + edi]
push eax
push 0
push ebx
call fcn.004e41d0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x49c2d4
mov esi, dword [esi]
cmp dword [ebp - 0x1060], 8
mov eax, dword [ebp - 0x1074]
jae 0x49c2e9
lea eax, [ebp - 0x1074]
push esi
push eax
push edi
push ebx
call fcn.00408d90
add esp, 0x10
test eax, eax
je 0x49c2fc
push ebx
jmp 0x49c2a3
mov eax, dword [ebp - 0x10d4]
test eax, eax
je 0x49c309
mov byte [eax], 1
mov ecx, dword [0x5563e8]
test ecx, ecx
je 0x49c348
push 3
lea edx, [ebp - 0x10ac]
push edx
call fcn.00461fb8
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x10b8], 1
jb 0x49c344
mov esi, dword [eax]
mov ecx, dword [0x5563e8]
test ecx, ecx
je 0x49c34d
call fcn.0044b400
jmp 0x49c34f
mov esi, eax
jmp 0x49c333
mov esi, 0x51199c
xor eax, eax
push 0x34
push esi
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete byte [ebp - 0x10ad]
test byte [ebp - 0x10b8], 1
je 0x49c378
lea ecx, [ebp - 0x10ac]
call fcn.0040a440
push ebx
call fcn.00418a67
add esp, 4
lea ecx, [ebp - 0x1074]
call fcn.0040a440
mov al, byte [ebp - 0x10ad]
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.00401316
mov esp, ebp
pop ebp
ret