Function at 0x49e1b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3962
mov eax, dword fs:[0]
push eax
mov eax, 0x12dc
call fcn.004b7610
mov eax, dword [0x5246a8]
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 edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x12e4], edi
mov dword [ebp - 0x12d4], eax
mov dword [ebp - 0x12e8], ecx
mov dword [ebp - 0x12cc], edx
cmp edi, ebx
je 0x49e211
mov byte [edi], bl
cmp eax, ebx
je 0x49e217
mov byte [eax], bl
cmp ecx, ebx
je 0x49e21d
mov byte [ecx], bl
mov edi, 8
cmp edx, ebx
je 0x49e239
mov dword [edx + 0x10], ebx
cmp dword [edx + 0x14], edi
jb 0x49e232
mov eax, dword [edx]
jmp 0x49e234
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x10], ebx
je 0x49e370
cmp dword [esi + 0x14], edi
jb 0x49e24b
mov eax, dword [esi]
jmp 0x49e24d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x49e277
cmp dword [esi + 0x14], edi
jb 0x49e261
mov eax, dword [esi]
jmp 0x49e263
mov eax, esi
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
cmp eax, ebx
jne 0x49e2a0
mov al, 1
jmp 0x49e372
cmp dword [esi + 0x14], edi
jb 0x49e280
mov eax, dword [esi]
jmp 0x49e282
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49e370
push 7
push str.file:__
push ebx
mov ecx, esi
call fcn.004191e0
push 0x1046
lea eax, [ebp - 0x1256]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x1258], dx
call fcn.004b7180
add esp, 0xc
mov dword [ebp - 0x12e0], 0x824
cmp dword [esi + 0x14], edi
jb 0x49e2d1
mov eax, dword [esi]
jmp 0x49e2d3
mov eax, esi
push ebx
lea ecx, [ebp - 0x12e0]
push ecx
lea edx, [ebp - 0x1258]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
jne 0x49e370
cmp dword [ebp - 0x12e0], ebx
jbe 0x49e370
push 7
push str.file:__
mov ecx, esi
call fcn.00406040
lea eax, [ebp - 0x1258]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49e310
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1258]
push eax
mov ecx, esi
call fcn.0040d610
mov eax, dword [esi + 0x10]
lea eax, [eax + eax*2]
xor ecx, ecx
mov dword [ebp - 0x12d8], eax
mov edx, 2
mul edx
seto cl
push 0x527ef9
neg ecx
or ecx, eax
push ecx
call fcn.004218c1
mov edi, eax
add esp, 8
mov dword [ebp - 0x12dc], edi
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x49e38e
push ebx
call fcn.004168eb
add esp, 4
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.00401306
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x12d8]
lea ecx, [eax + eax]
push ecx
push ebx
push edi
call fcn.004b7180
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x49e3ac
mov eax, dword [esi]
jmp 0x49e3ae
mov eax, esi
push 0x20001000
lea edx, [ebp - 0x12d8]
push edx
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_UrlCanonicalizeW]
push edi
test eax, eax
jne 0x49e368
mov ecx, esi
call fcn.004321e0
lea eax, [ebp - 0x1258]
push eax
lea ecx, [ebp - 0x1274]
call fcn.00408780
lea ecx, [ebp - 0x1274]
push ebx
push ecx
mov byte [ebp - 4], 1
call fcn.00416230
add esp, 8
test al, al
je 0x49e533
cmp dword [ebp - 0x1264], ebx
jbe 0x49e533
mov eax, dword [ebp - 0x12e4]
cmp eax, ebx
je 0x49e415
mov byte [eax], 1
cmp dword [ebp - 0x12cc], ebx
je 0x49e432
mov ecx, dword [ebp - 0x12cc]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x1274]
push edx
call fcn.004066a0
push 0x1fe
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x210], ax
call fcn.004b7180
mov eax, dword [ebp - 0x1274]
add esp, 0xc
cmp dword [ebp - 0x1260], 8
jae 0x49e465
lea eax, [ebp - 0x1274]
push 0x100
lea edx, [ebp - 0x210]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call fcn.004b93f3
add esp, 0x24
test eax, eax
jne 0x49e533
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x1290]
call fcn.00408780
mov eax, dword [ebp - 0x127c]
mov ecx, dword [ebp - 0x1290]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x49e4b7
mov dword [ebp - 0x12cc], ecx
jmp 0x49e4c3
lea edx, [ebp - 0x1290]
mov dword [ebp - 0x12cc], edx
mov ebx, ecx
cmp eax, 8
jae 0x49e4d0
lea ebx, [ebp - 0x1290]
lea eax, [ebp - 0x12e4]
push eax
lea ecx, [ebp - 0x1290]
call fcn.0045b0b0
mov ecx, dword [ebp - 0x12cc]
mov edx, dword [eax]
push fcn.0040f424
push ecx
push edx
lea eax, [ebp - 0x12cc]
push ebx
push eax
call fcn.004457c0
mov eax, dword [ebp - 0x1290]
add esp, 0x14
cmp dword [ebp - 0x127c], 8
jae 0x49e516
lea eax, [ebp - 0x1290]
push 1
push eax
lea ecx, [ebp - 0x12cd]
call fcn.0049d360
lea ecx, [ebp - 0x1290]
test al, al
je 0x49e544
call fcn.00409ff0
lea ecx, [ebp - 0x1274]
call fcn.00409ff0
push edi
jmp 0x49e368
push str..pdf
call fcn.00438170
test eax, eax
je 0x49e76d
push str..fdf
lea ecx, [ebp - 0x1290]
call fcn.00438170
test eax, eax
je 0x49e76d
push str..xfdf
lea ecx, [ebp - 0x1290]
call fcn.00438170
test eax, eax
je 0x49e76d
push str..xdp
lea ecx, [ebp - 0x1290]
call fcn.00438170
test eax, eax
je 0x49e76d
lea ecx, [ebp - 0x1290]
mov byte [ebp - 4], 1
call fcn.00409ff0
lea ecx, [ebp - 0x12ac]
push ecx
call fcn.0049c030
add esp, 4
mov ecx, dword [ebp - 0x129c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x49e61e
mov edx, dword [ebp - 0x12ac]
mov eax, 8
cmp dword [ebp - 0x1298], eax
jae 0x49e5e3
lea edx, [ebp - 0x12ac]
cmp dword [ebp - 0x1260], eax
mov eax, dword [ebp - 0x1274]
jae 0x49e5f7
lea eax, [ebp - 0x1274]
push ecx
push edx
push eax
call fcn.00418ef4
add esp, 0xc
test eax, eax
jne 0x49e61e
mov eax, dword [ebp - 0x12d4]
test eax, eax
je 0x49e613
mov byte [eax], 1
lea ecx, [ebp - 0x12ac]
jmp 0x49e773
mov ecx, dword [0x527178]
push 4
lea edx, [ebp - 0x12c8]
push edx
call fcn.00437b5c
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x12b8]
lea ebx, [ecx + eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
push 0x527ef9
neg ecx
or ecx, eax
push ecx
call fcn.004218c1
mov edi, eax
add esp, 8
mov dword [ebp - 0x12d4], edi
mov byte [ebp - 4], 5
test edi, edi
jne 0x49e6a5
push eax
call fcn.004168eb
add esp, 4
lea ecx, [ebp - 0x12c8]
call fcn.00409ff0
lea ecx, [ebp - 0x12ac]
call fcn.00409ff0
lea ecx, [ebp - 0x1274]
call fcn.00409ff0
mov eax, dword [ebp - 0x12dc]
push eax
jmp 0x49e368
lea ecx, [ebx + ebx]
push ecx
push 0
push edi
call fcn.004b7180
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x49e6bc
mov esi, dword [esi]
cmp dword [ebp - 0x12b4], 8
mov eax, dword [ebp - 0x12c8]
jae 0x49e6d1
lea eax, [ebp - 0x12c8]
push esi
push eax
push ebx
push edi
call fcn.00408a50
mov eax, dword [ebp - 0x12e8]
add esp, 0x10
test eax, eax
je 0x49e6ea
mov byte [eax], 1
mov ecx, dword [0x527178]
push 3
lea edx, [ebp - 0x1290]
push edx
call fcn.00437b5c
cmp dword [eax + 0x14], 8
jb 0x49e706
mov eax, dword [eax]
mov ecx, dword [0x527178]
push 0x34
push eax
push edi
call fcn.0043be00
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
lea ecx, [ebp - 0x1290]
sete bl
call fcn.00409ff0
push edi
call fcn.004168eb
add esp, 4
lea ecx, [ebp - 0x12c8]
call fcn.00409ff0
lea ecx, [ebp - 0x12ac]
call fcn.00409ff0
lea ecx, [ebp - 0x1274]
call fcn.00409ff0
mov eax, dword [ebp - 0x12dc]
push eax
call fcn.004168eb
add esp, 4
mov al, bl
jmp 0x49e372
lea ecx, [ebp - 0x1290]
call fcn.00409ff0
lea ecx, [ebp - 0x1274]
call fcn.00409ff0
push edi
call fcn.004168eb
add esp, 4
mov al, 1
jmp 0x49e372