Function at 0x49e110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e39c2
mov eax, dword fs:[0]
push eax
mov eax, 0x12dc
call fcn.004b75b0
mov eax, dword [0x5256a8]
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 0x49e171
mov byte [edi], bl
cmp eax, ebx
je 0x49e177
mov byte [eax], bl
cmp ecx, ebx
je 0x49e17d
mov byte [ecx], bl
mov edi, 8
cmp edx, ebx
je 0x49e199
mov dword [edx + 0x10], ebx
cmp dword [edx + 0x14], edi
jb 0x49e192
mov eax, dword [edx]
jmp 0x49e194
mov eax, edx
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x10], ebx
je 0x49e2d0
cmp dword [esi + 0x14], edi
jb 0x49e1ab
mov eax, dword [esi]
jmp 0x49e1ad
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x49e1d7
cmp dword [esi + 0x14], edi
jb 0x49e1c1
mov eax, dword [esi]
jmp 0x49e1c3
mov eax, esi
push 3
push eax
call dword [sym.imp.SHLWAPI.dll_UrlIsW]
cmp eax, ebx
jne 0x49e200
mov al, 1
jmp 0x49e2d2
cmp dword [esi + 0x14], edi
jb 0x49e1e0
mov eax, dword [esi]
jmp 0x49e1e2
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49e2d0
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.004b7120
add esp, 0xc
mov dword [ebp - 0x12e0], 0x824
cmp dword [esi + 0x14], edi
jb 0x49e231
mov eax, dword [esi]
jmp 0x49e233
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 0x49e2d0
cmp dword [ebp - 0x12e0], ebx
jbe 0x49e2d0
push 7
push str.file:__
mov ecx, esi
call fcn.00406030
lea eax, [ebp - 0x1258]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49e270
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 0x528ef9
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 0x49e2ee
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.004b7120
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x49e30c
mov eax, dword [esi]
jmp 0x49e30e
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 0x49e2c8
mov ecx, esi
call fcn.004321e0
lea eax, [ebp - 0x1258]
push eax
lea ecx, [ebp - 0x1274]
call fcn.00408770
lea ecx, [ebp - 0x1274]
push ebx
push ecx
mov byte [ebp - 4], 1
call fcn.00416230
add esp, 8
test al, al
je 0x49e493
cmp dword [ebp - 0x1264], ebx
jbe 0x49e493
mov eax, dword [ebp - 0x12e4]
cmp eax, ebx
je 0x49e375
mov byte [eax], 1
cmp dword [ebp - 0x12cc], ebx
je 0x49e392
mov ecx, dword [ebp - 0x12cc]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x1274]
push edx
call fcn.00406690
push 0x1fe
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x210], ax
call fcn.004b7120
mov eax, dword [ebp - 0x1274]
add esp, 0xc
cmp dword [ebp - 0x1260], 8
jae 0x49e3c5
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.004b9393
add esp, 0x24
test eax, eax
jne 0x49e493
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x1290]
call fcn.00408770
mov eax, dword [ebp - 0x127c]
mov ecx, dword [ebp - 0x1290]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x49e417
mov dword [ebp - 0x12cc], ecx
jmp 0x49e423
lea edx, [ebp - 0x1290]
mov dword [ebp - 0x12cc], edx
mov ebx, ecx
cmp eax, 8
jae 0x49e430
lea ebx, [ebp - 0x1290]
lea eax, [ebp - 0x12e4]
push eax
lea ecx, [ebp - 0x1290]
call fcn.00445830
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.00445860
mov eax, dword [ebp - 0x1290]
add esp, 0x14
cmp dword [ebp - 0x127c], 8
jae 0x49e476
lea eax, [ebp - 0x1290]
push 1
push eax
lea ecx, [ebp - 0x12cd]
call fcn.0049d2c0
lea ecx, [ebp - 0x1290]
test al, al
je 0x49e4a4
call fcn.00409fe0
lea ecx, [ebp - 0x1274]
call fcn.00409fe0
push edi
jmp 0x49e2c8
push str..pdf
call fcn.00438170
test eax, eax
je 0x49e6cd
push str..fdf
lea ecx, [ebp - 0x1290]
call fcn.00438170
test eax, eax
je 0x49e6cd
push str..xfdf
lea ecx, [ebp - 0x1290]
call fcn.00438170
test eax, eax
je 0x49e6cd
push str..xdp
lea ecx, [ebp - 0x1290]
call fcn.00438170
test eax, eax
je 0x49e6cd
lea ecx, [ebp - 0x1290]
mov byte [ebp - 4], 1
call fcn.00409fe0
lea ecx, [ebp - 0x12ac]
push ecx
call fcn.0049bf90
add esp, 4
mov ecx, dword [ebp - 0x129c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x49e57e
mov edx, dword [ebp - 0x12ac]
mov eax, 8
cmp dword [ebp - 0x1298], eax
jae 0x49e543
lea edx, [ebp - 0x12ac]
cmp dword [ebp - 0x1260], eax
mov eax, dword [ebp - 0x1274]
jae 0x49e557
lea eax, [ebp - 0x1274]
push ecx
push edx
push eax
call fcn.00418ef4
add esp, 0xc
test eax, eax
jne 0x49e57e
mov eax, dword [ebp - 0x12d4]
test eax, eax
je 0x49e573
mov byte [eax], 1
lea ecx, [ebp - 0x12ac]
jmp 0x49e6d3
mov ecx, dword [0x528178]
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 0x528ef9
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 0x49e605
push eax
call fcn.004168eb
add esp, 4
lea ecx, [ebp - 0x12c8]
call fcn.00409fe0
lea ecx, [ebp - 0x12ac]
call fcn.00409fe0
lea ecx, [ebp - 0x1274]
call fcn.00409fe0
mov eax, dword [ebp - 0x12dc]
push eax
jmp 0x49e2c8
lea ecx, [ebx + ebx]
push ecx
push 0
push edi
call fcn.004b7120
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x49e61c
mov esi, dword [esi]
cmp dword [ebp - 0x12b4], 8
mov eax, dword [ebp - 0x12c8]
jae 0x49e631
lea eax, [ebp - 0x12c8]
push esi
push eax
push ebx
push edi
call fcn.00408a40
mov eax, dword [ebp - 0x12e8]
add esp, 0x10
test eax, eax
je 0x49e64a
mov byte [eax], 1
mov ecx, dword [0x528178]
push 3
lea edx, [ebp - 0x1290]
push edx
call fcn.00437b5c
cmp dword [eax + 0x14], 8
jb 0x49e666
mov eax, dword [eax]
mov ecx, dword [0x528178]
push 0x34
push eax
push edi
call fcn.0043be10
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
lea ecx, [ebp - 0x1290]
sete bl
call fcn.00409fe0
push edi
call fcn.004168eb
add esp, 4
lea ecx, [ebp - 0x12c8]
call fcn.00409fe0
lea ecx, [ebp - 0x12ac]
call fcn.00409fe0
lea ecx, [ebp - 0x1274]
call fcn.00409fe0
mov eax, dword [ebp - 0x12dc]
push eax
call fcn.004168eb
add esp, 4
mov al, bl
jmp 0x49e2d2
lea ecx, [ebp - 0x1290]
call fcn.00409fe0
lea ecx, [ebp - 0x1274]
call fcn.00409fe0
push edi
call fcn.004168eb
add esp, 4
mov al, 1
jmp 0x49e2d2